| 1 | import unittest |
| 2 | |
| 3 | from rdflib import plugin |
| 4 | from rdflib.graph import Graph, Store |
| 5 | |
| 6 | |
| 7 | class TestOpen(unittest.TestCase): |
| 8 | def test_open_corrupted(self): |
| 9 | store = plugin.get('SQLAlchemy', Store)(identifier='open_test') |
| 10 | self.graph = Graph(store, identifier='open_test') |
| 11 | with self.assertRaises(RuntimeError): |
| 12 | self.graph.open("sqlite:///test/corrupted.sqlite", create=False) |