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