def _cls(self, raw): pkg = apilint.Package(999, "package pkg {", None) return apilint.Class(pkg, 1, raw, '', sig_format=2)
def _package(self, raw): return apilint.Package(123, raw, "blame")
def cls(pkg, name): return apilint.Class(apilint.Package(999, "package %s {" % pkg, None), 999, "public final class %s {" % name, None)
def test_parse_package(self): pkg = apilint.Package(999, "package wifi.p2p {", None) self.assertEquals("wifi.p2p", pkg.name)