@@ -0,0 +1,704 @@
+%22%22%22Unit tests utilizing RDFa parsing. Primarily cc.license.formatter.%22%22%22%0A%0Aimport cc.license%0Aimport rdfadict%0Aimport rdflib%0A%0Aclass TestHtmlFormatter:%0A%0A    def __init__(self):%0A        self.parser = rdfadict.RdfaParser()%0A        self.base = 'FOOBAR'%0A        self.lic = cc.license.by_code('by')%0A        self.fmtr = cc.license.formatters.HTML%0A        # define namespaces%0A        self.w3 = rdflib.Namespace('http://www.w3.org/1999/xhtml/vocab#')%0A%0A    def parse(self, rdfa_string):%0A        return self.parser.parse_string(rdfa_string, self.base)%0A%0A    def test_basic(self):%0A        r = self.fmtr.format(self.lic)%0A        trips = self.parse(r)%0A        assert self.lic.uri in trips%5Bself.base%5D%5Bstr(self.w3.license)%5D%0A

Create initial RDFa tests as their own top-level test module.