Esempio n. 1
0
 def test_from_object__value_error(self, obj):
     with pytest.raises(ValueError):
         UrlPath.from_object(obj)
Esempio n. 2
0
    def test_from_object(self, obj, expected):
        target = UrlPath.from_object(obj)

        assert target._nodes == expected