Пример #1
0
 def test_create_templates(self, rdf_model: RdfModel, type_, expected):
     result = rdf_model._template(type_, False)
     assert result == expected
Пример #2
0
 def test_create_templates_only_required(self, rdf_model: RdfModel, type_,
                                         expected):
     result = rdf_model._template(type_, True)
     assert result == expected
Пример #3
0
 def test_request_invalid_type(self, rdf_model: RdfModel):
     with pytest.raises(ValueError):
         rdf_model._template("Invalid", False)