コード例 #1
0
ファイル: tests.py プロジェクト: Jiig/schema-org-editor
 def test_entity_exists(self):
     editor.create_entity(self.test_entity_uri)
     self.assertTrue(editor.entity_exists(self.test_entity_uri))
     nonexisting_uri = "/".join([editor.fedora_base, 'Test', 'Work2'])
     self.assertFalse(editor.entity_exists(nonexisting_uri))
コード例 #2
0
ファイル: tests.py プロジェクト: Jiig/schema-org-editor
 def test_update_entity_property(self):
     editor.create_entity(self.test_entity_uri)
コード例 #3
0
ファイル: tests.py プロジェクト: Jiig/schema-org-editor
 def test_create_entity(self):
     self.assertEqual(
         self.test_entity_uri,
         editor.create_entity(self.test_entity_uri))