Beispiel #1
0
 def test_get_document_cls(self):
     meta._document_registry = {'MyItem1231': 1}
     assert meta.get_document_cls('MyItem1231') == 1
Beispiel #2
0
 def test_get_document_cls_key_error(self):
     with pytest.raises(KeyError):
         meta.get_document_cls('MyItem1231')