Example #1
0
def test_uri_to_false():
    uri = URI("")
    assert not uri.__bool__()
    assert not uri.__nonzero__()
Example #2
0
def test_uri_to_true():
    uri = URI("http://example.com/")
    assert uri.__bool__()
    assert uri.__nonzero__()