Exemplo 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)
Exemplo 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)