Пример #1
0
 def test_validate_with_invalid_path(self, path):
     with pytest.raises(ValueError) as e:
         Ltree.validate(path)
     assert str(
         e.value) == ("'{0}' is not a valid ltree path.".format(path))
Пример #2
0
 def test_validate_with_invalid_path(self, path):
     with pytest.raises(ValueError) as e:
         Ltree.validate(path)
     assert str(e.value) == (
         "'{0}' is not a valid ltree path.".format(path)
     )
Пример #3
0
 def test_validate_with_valid_codes(self, code):
     Ltree.validate(code)
Пример #4
0
 def test_validate_with_valid_codes(self, code):
     Ltree.validate(code)