def testcases(): manifest = Manifest(open_data_file('rdfcore/Manifest.rdf')) rdf_suite = RDFTestSuite.from_manifest(manifest, opener=TEST_OPENER) if not TEST_URIS: return rdf_suite else: suite = RDFTestSuite() for test in rdf_suite: if test.id() in TEST_URIS: suite.addTest(test) return suite
def setUp(self): self.file = open_data_file('manifest.rdf') self.manifest = Manifest(self.file) self.suite = RDFTestSuite.from_manifest(self.manifest, opener=NULL_OPENER) self.result = unittest.TestResult() self.suite.run(self.result)