def test_toggle(self): bb.toggle(3, 4) self.assertEqual(bb.Loc_Marks, [(2, 3)]) bb.toggle(5, 6) self.assertEqual(bb.Loc_Marks, [(2, 3), (4, 5)]) bb.toggle(1, 7) self.assertEqual(bb.Loc_Marks, [(2, 3), (4, 5), (0, 6)])
def test_score(self): self.assertEqual(bb.score(), 60) bb.toggle(3, 4) bb.mark('3l') self.assertEqual(bb.score(), 49)