'Testing the error handling of a tftp handler'

def test_handle_error(self):

    mock_session = MockObject()
    mock_session.is_failed = False
    self.handler._send_error_packet = (lambda _dummy1, _dummy2, _dummy3: None)
    self.handler._handle_error(mock_session, None)
    self.assertTrue(mock_session.is_failed)
