Esempio n. 1
0
 def testDefaultHead(self):
     drum = Drum("test drum", "td", "x")
     self.assertEqual(len(drum), 0)
     self.assertEqual(drum.head, "x")
     self.assertFalse(drum.isAllowedHead("x"))
     self.assertRaises(KeyError, drum.headData, None)
Esempio n. 2
0
 def testDefaultHead(self):
     drum = Drum("test drum", "td", "x")
     self.assertEqual(len(drum), 0)
     self.assertEqual(drum.head, "x")
     self.assertFalse(drum.isAllowedHead("x"))
     self.assertRaises(KeyError, drum.headData , None)