def test_caps(self): cases = (("vendor.example.org/cap-name", "vendor.example.org/cap-name", None), ) for text, name, value in cases: cap = Cap.parse(text) assert cap.name == name assert cap.value == value
def test_parse(self, text, name, value): """Test parsing string""" cap = Cap.parse(text) assert cap.name == name assert cap.value == value
def test_parse(self, text, name, value): cap = Cap.parse(text) assert cap.name == name assert cap.value == value