'Testing whether we do nothing when data comes in and the handler is not running'

def test_data_came_in(self):

    def mocked_process_packet(_dummy1, _dummy2):
        raise RuntimeError('_process_packet    may    not    be    called')
    self.handler._process_packet = mocked_process_packet
    self.handler._is_running = False
    self.handler.data_came_in(None, None)
