6 from testutils
import *
7 from testmodel
import *
9 class ImportTest(TestCase
):
12 def gen_import_test(module
):
13 def import_test(self
):
15 for idx
, path
in enumerate(module
.split('.')):
17 modinfo
= imp
.find_module(path
)
18 mod
= imp
.load_module(module
, *modinfo
)
20 modinfo
= imp
.find_module('cola/'+path
, modinfo
[0])
21 mod
= imp
.load_module(path
, *modinfo
)
35 "test" + module
.title().replace('.', ''),
36 gen_import_test(module
))