Beispiel #1
0
class FileBackendTestCase(TestCase, StandardBackendReturnsRdflibGraphTestMixin):
    def setUp(self):
        filename = "www_w3_org__People__Berners-Lee__card.xml"
        file_name = os.path.join(os.path.dirname(__file__), filename)
        self.BACKEND = FileBackend(file_name)

        # TODO implement file object handling, maybe use
        # tempfile.NamedTemporaryFile instead of file

    def tearDown(self):
        self.BACKEND.revert_to_old_version()

    def test_revert_to_old_version(self):
        pass  # TODO
Beispiel #2
0
 def setUp(self):
     filename = "www_w3_org__People__Berners-Lee__card.xml"
     file_name = os.path.join(os.path.dirname(__file__), filename)
     self.BACKEND = FileBackend(file_name)