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))
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) )
def test_validate_with_valid_codes(self, code): Ltree.validate(code)