def test_forgivelist(self, timer_patcher): Tk_functional_test.p._round_grace = 0 joe = FakeClient(fakeConsole, name="Joe", exactName="Joe", guid="joeguid", groupBits=1, team=b3.TEAM_RED) mike = FakeClient(fakeConsole, name="Mike", exactName="Mike", guid="mikeguid", groupBits=1, team=b3.TEAM_RED) bill = FakeClient(fakeConsole, name="Bill", exactName="Bill", guid="billguid", groupBits=1, team=b3.TEAM_RED) joe.connects(0) mike.connects(1) bill.connects(2) joe.message_history = [] joe.says("!forgivelist") self.assertEqual("no one to forgive", joe.message_history[0]) mike.damages(joe, points=14) joe.message_history = [] joe.says("!forgivelist") self.assertIn("Mike [14]", joe.message_history[0]) bill.damages(joe, points=84) joe.message_history = [] joe.says("!forgivelist") self.assertIn("Mike [14]", joe.message_history[0]) self.assertIn("Bill [84]", joe.message_history[0])