예제 #1
0
 def test_upload_date(self):
     """ Make sure that we're marking a statement with it's upload date """
     g = make_graph(20)
     r = DataObject(triples=g)
     r.save()
     u = r.upload_date()
     self.assertIsNotNone(u)
예제 #2
0
 def test_upload_date(self):
     """ Make sure that we're marking a statement with it's upload date """
     g = make_graph(20)
     r = DataObject(triples=g)
     r.save()
     u = r.upload_date()
     self.assertIsNotNone(u)
예제 #3
0
 def test_uploader(self):
     """ Make sure that we're marking a statement with it's uploader """
     g = make_graph(20)
     r = DataObject(triples=g, conf=self.config)
     r.save()
     u = r.uploader()
     self.assertEqual(self.config['user.email'], u)
예제 #4
0
 def test_uploader(self):
     """ Make sure that we're marking a statement with it's uploader """
     g = make_graph(20)
     r = DataObject(triples=g, conf=self.config)
     r.save()
     u = r.uploader()
     self.assertEqual(self.config['user.email'], u)