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