def testAddInstrument(self): p=Project() p.AddInstrument("test","Electric Guitar",None) self.assertEqual(len(p.instruments), 1) self.assertEqual(p.instruments[0].name, "test")