Example #1
0
 def testGotRDFa(self):
     """Check HTML output formatter rdfa method returns some text"""
     foaf_spec = Vocab(dir=FOAFSNAPSHOTDIR, f=FOAFSNAPSHOT, uri=FOAF)
     foaf_spec.index()
     page = VocabReport(foaf_spec)
     rdfa = page.rdfa()
     self.failUnless(rdfa)
Example #2
0
 def testGotRDFa(self):
   """Check HTML output formatter rdfa method returns some text"""
   foaf_spec = Vocab(dir=FOAFSNAPSHOTDIR,f=FOAFSNAPSHOT, uri = FOAF)
   foaf_spec.index()
   page = VocabReport(foaf_spec)
   rdfa = page.rdfa()
   self.failUnless(rdfa)
Example #3
0
 def testGenerateReport(self):
   """Use the template to generate our report page."""
   foaf_spec = Vocab(dir=FOAFSNAPSHOTDIR,f=FOAFSNAPSHOT, uri = FOAF)
   foaf_spec.index()
   page = VocabReport(foaf_spec, basedir='./examples/', temploc='template.html')
   tpl = page.template
   final = page.generate()
   rdfa = page.rdfa()
   self.assertNotEqual(final, "Nope!")
Example #4
0
 def testGenerateReport(self):
     """Use the template to generate our report page."""
     foaf_spec = Vocab(dir=FOAFSNAPSHOTDIR, f=FOAFSNAPSHOT, uri=FOAF)
     foaf_spec.index()
     page = VocabReport(foaf_spec,
                        basedir='./examples/',
                        temploc='template.html')
     tpl = page.template
     final = page.generate()
     rdfa = page.rdfa()
     self.assertNotEqual(final, "Nope!")