def test_multifile_import(): compileCode( "multiFileImport", "import multiFileImport1\ndef f(): return multiFileImport1.f()", "def f(): return 42") import multiFileImport AreEqual(multiFileImport.f(), 42)
def test_multifile_import(self): self.compileCode( "multiFileImport", "import multiFileImport1\ndef f(): return multiFileImport1.f()", "def f(): return 42") import multiFileImport self.assertEqual(multiFileImport.f(), 42)
def test_multifile_import(): compileCode("multiFileImport", "import multiFileImport1\ndef f(): return multiFileImport1.f()", "def f(): return 42") import multiFileImport AreEqual(multiFileImport.f(), 42)
def test_multifile_import(self): self.compileCode("multiFileImport", "import multiFileImport1\ndef f(): return multiFileImport1.f()", "def f(): return 42") import multiFileImport self.assertEqual(multiFileImport.f(), 42)