def test_getModuleForNameLoad(self):
        moduleName = u'test_getModuleForNameLoad'
        origAllJavascriptPackages = athena.allJavascriptPackages
        theJavascriptPackages = {moduleName: self.mktemp()}
        athena.allJavascriptPackages = lambda: theJavascriptPackages
        reg = athena.JSDependencies()
        try:
            mod = reg.getModuleForName(moduleName)
        finally:
            athena.allJavascriptPackages = origAllJavascriptPackages
        self.assertEqual(mod.name, moduleName)
        self.assertEqual(mod.mapping, theJavascriptPackages)
L{athena.JSDependencies} should initialize its mapping from
dataset/ETHPy150Open twisted/nevow/nevow/test/test_athena.py/JSDependenciesTests.test_getModuleForNameLoad