1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
"""Check the VCSDependency."""
from fades import parsing
def test_string_representation():
"""This is particularly tested because it's the interface to be installed."""
dep = parsing.VCSDependency("testurl")
assert str(dep), "testurl"
def test_contains():
"""This is particularly tested because it's how fulfilling is tested."""
dep1 = parsing.VCSDependency("testurl")
dep2 = parsing.VCSDependency("testurl")
dep3 = parsing.VCSDependency("otherurl")
assert dep1 in dep2
assert dep1 not in dep3
def test_equality():
dep1 = parsing.VCSDependency("testurl")
dep2 = parsing.VCSDependency("testurl")
dep3 = parsing.VCSDependency("otherurl")
assert dep1 == dep2
assert not (dep1 == dep3)
assert not (dep1 != dep2)
assert dep1 != dep3
assert not (dep1 == 123)
assert not (dep1 == "testurl")
|