@@ -53,33 +53,33 @@ An illustrative unit test:
53
53
54
54
``` python
55
55
56
- import unittest
57
- from rdflib import plugin, Graph, Literal, URIRef
58
- from rdflib.store import Store
56
+ import unittest
57
+ from rdflib import plugin, Graph, Literal, URIRef
58
+ from rdflib.store import Store
59
59
60
60
61
- class SQLASQLiteGraphTestCase (unittest .TestCase ):
62
- ident = URIRef(" rdflib_test" )
63
- uri = Literal(" sqlite://" )
61
+ class SQLASQLiteGraphTestCase (unittest .TestCase ):
62
+ ident = URIRef(" rdflib_test" )
63
+ uri = Literal(" sqlite://" )
64
64
65
- def setUp (self ):
66
- store = plugin.get(" SQLAlchemy" , Store)(identifier = self .ident)
67
- self .graph = Graph(store, identifier = self .ident)
68
- self .graph.open(self .uri, create = True )
65
+ def setUp (self ):
66
+ store = plugin.get(" SQLAlchemy" , Store)(identifier = self .ident)
67
+ self .graph = Graph(store, identifier = self .ident)
68
+ self .graph.open(self .uri, create = True )
69
69
70
- def tearDown (self ):
71
- self .graph.destroy(self .uri)
72
- try :
73
- self .graph.close()
74
- except :
75
- pass
70
+ def tearDown (self ):
71
+ self .graph.destroy(self .uri)
72
+ try :
73
+ self .graph.close()
74
+ except :
75
+ pass
76
76
77
- def test01 (self ):
78
- self .assert_(self .graph is not None )
79
- print (self .graph)
77
+ def test01 (self ):
78
+ self .assert_(self .graph is not None )
79
+ print (self .graph)
80
80
81
- if __name__ == ' __main__' :
82
- unittest.main()
81
+ if __name__ == ' __main__' :
82
+ unittest.main()
83
83
```
84
84
85
85
Running the tests
0 commit comments