Beispiel #1
0
def test_address_from_socket_with_none():
    # python -m pytest tests/unit/test_addressing.py -s -k test_address_from_socket_with_none
    with pytest.raises(AttributeError):
        address = Address.from_socket(None)
Beispiel #2
0
def test_address_from_socket(test_input, expected):
    # python -m pytest tests/unit/test_addressing.py -s -k test_address_from_socket

    address = Address.from_socket(test_input)
    assert address == expected