コード例 #1
0
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
コード例 #2
0
 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)
コード例 #3
0
ファイル: test_unittest.py プロジェクト: exogen/python-rdf
 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)