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)
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)