def test__get_remote_address(self):
    mock_instance = mock.Mock()
    mock_instance._listeners = {('udp', 1024): {'ipv4': '1.2.3.4'}}
    self.assertEqual(self.c._get_remote_address(mock_instance, 'udp', 1024), '1.2.3.4')
def test__get_remote_address(self):
    mock_instance = mock.Mock()
    mock_instance._listeners = {('udp', 1024): {'ipv4': '1.2.3.4'}}
    self.assertEqual(self.c._get_remote_address(mock_instance, 'udp', 1024), '1.2.3.4')