def test_find_and_handle_stale_conversations(self): conversation = StubConversation(12344) conversation.retries_made = 6 table = ConversationTable() table.add_conversation("stub_host", "stub_port", conversation) performer = Performer(self.sock, table, 10, 6) performer.find_and_handle_stale_conversations() self.assertEqual(len(table), 0)