Пример #1
0
    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
Пример #2
0
 def test_parse(self, text, name, value):
     """Test parsing string"""
     cap = Cap.parse(text)
     assert cap.name == name
     assert cap.value == value
Пример #3
0
 def test_parse(self, text, name, value):
     cap = Cap.parse(text)
     assert cap.name == name
     assert cap.value == value