Permalink
Browse files

Use __name__ in tests.

  • Loading branch information...
ralphbean committed May 9, 2012
1 parent 3268c26 commit fbe2b697930e6a8ff9a124a4aab27ba34e7c3def
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/test_resources.py
@@ -319,13 +319,13 @@ def testAutoModnameReqPrep(self):
l = twr.Link(filename="somefile")
l = l.req()
l.prepare()
eq_(l.modname, "test_resources")
eq_(l.modname, __name__)
def testAutoModnameInject(self):
l = twr.Link(filename="somefile")
l.inject()
local = tw2.core.core.request_local()
eq_(local['resources'][0].modname, "test_resources")
eq_(local['resources'][0].modname, __name__)
def testDirLink(self):
dl = twr.DirLink(modname="tw2.core", filename="somefile")

0 comments on commit fbe2b69

Please sign in to comment.