def test_simple(self): from foo.bar.eggs import f1 # root package from foo.bar.eggs.ham import f2 # sub-packaged from foo.bar.eggs.bacon import f4 # root package merged as logical sub-package from foo.bar.spam import f3 # root package self.assertEqual(f1(), "foo.bar.eggs") self.assertEqual(f2(), "foo.bar.eggs.ham") self.assertEqual(f4(), "foo.bar.eggs.bacon") self.assertEqual(f3(), "foo.bar.spam")
def test_simple(self): from foo.bar.eggs import f1 # root package from foo.bar.eggs.ham import f2 # sub-packaged from foo.bar.eggs.bacon import f4 # root package merged as logical sub-package from foo.bar.spam import f3 # root package self.assertEqual(f1(), "foo.bar.eggs") self.assertEqual(f2(), "foo.bar.eggs.ham") self.assertEqual(f4(), "foo.bar.eggs.bacon") self.assertEqual(f3(), "foo.bar.spam")
def f6(): return "foo.bar.eggs.bacon.absolute calling " + f2()
def f6(): return "foo.bar.eggs.bacon.absolute calling " + f2()