def METHOD_NAME(self):
    h = self._create_pkg("somepkg")
    h2 = self._create_mod("sub.py", "somepkg")
    h2.write(b"test=123\n")
    h2.close()
    h.write(b"from .sub import *\nmain=321\n")
    h.close()
    s = ModuleScanner([self.d])
    removed, added = s.rescan()
    self.failUnlessEqual(added, ["somepkg"])
    self.failUnlessEqual(s.modules["somepkg"].module.main, 321)
    self.failUnlessEqual(s.modules["somepkg"].module.test, 123)