def testAutoModnameInject(self): l = twr.Link(filename="somefile") l.inject() local = tw2.core.core.request_local() eq_(local['resources'][0].modname, __name__)
def testAutoModname(self): l = twr.Link(filename="somefile") eq_(l.modname, __name__)
def testAutoModnameReqPrep(self): l = twr.Link(filename="somefile") l = l.req() l.prepare() eq_(l.modname, __name__)
def testLinkHash(self): l = twr.Link(link="http://google.com") self.assert_(hash(l.req())) # meh