def test_has_rings3(self): """ Test if a player has multiple rings. """ p = Player('b') p.set_rings([(14, 19), (12, 2)]) self.assertTrue(p.has_rings())
def test_has_rings2(self): """ Test if a player has no rings. """ p = Player('w') p.set_rings([]) self.assertFalse(p.has_rings())
def test_set_rings2(self): """ Test if a player can have multiple rings. """ p = Player('w') p.set_rings([(14, 19), (12, 2)]) self.assertListEqual([(14, 19), (12, 2)], p.get_rings())
def test_set_rings3(self): """ Test if a players rings can be emptied. """ p = Player('b') p.set_rings([]) self.assertListEqual([], p.get_rings())
def test_set_rings1(self): """ Test if a players ring can be changed. """ p = Player('b') p.set_rings([(15, 17)]) self.assertListEqual([(15, 17)], p.get_rings())