'Testing whether we fail if we exceed our maximum amount of retries'

def test_check_session_timeout(self):

    mock_session = MockObject()
    mock_session.retries = 2
    mock_session.timeout = 1
    mock_session.last_contact_time = 2
    self.handler._max_retries = 1
    self.assertTrue(self.handler._check_session_timeout(mock_session))
