Ejemplo n.º 1
0
def test_multifile_import():
    compileCode(
        "multiFileImport",
        "import multiFileImport1\ndef f(): return multiFileImport1.f()",
        "def f(): return 42")

    import multiFileImport
    AreEqual(multiFileImport.f(), 42)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
def test_multifile_import():
    compileCode("multiFileImport", "import multiFileImport1\ndef f(): return multiFileImport1.f()", "def f(): return 42")
    
    import multiFileImport
    AreEqual(multiFileImport.f(), 42)
Ejemplo n.º 4
0
 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)