def test_Narrative_file(self): import niprov niprov.discover('testdata') pth = os.path.abspath('testdata/dicom/T1.dcm') provenance = niprov.ProvenanceContext().get().byLocation(pth) text = niprov.export(provenance, 'direct', 'narrated') self.assertEqual(text, ( "This is a T1 image. It was recorded August 5, " "2014. The participant's name is 05aug14test. It is 158KB in size. " ))
def test_Narrative_file(self): import niprov niprov.discover("testdata") pth = os.path.abspath("testdata/dicom/T1.dcm") provenance = niprov.ProvenanceContext().get().byLocation(pth) text = niprov.export(provenance, "direct", "narrated") self.assertEqual( text, ( "This is a T1 image. It was recorded August 5, " "2014. The participant's name is 05aug14test. It is 158KB in size. " ), )
def export(self, *args, **kwargs): import niprov return niprov.export(*args, dependencies=self.dependencies, **kwargs)