def test_find_addr_failure(addr, fake_vhost): assert _find_addr(mock.Mock(), fake_vhost, addr) is None
def test_find_addr_success(addr, fake_vhost): assert _find_addr(mock.Mock(), fake_vhost, addr).address == addr