3 from base_test import DakTestCase, DAK_ROOT_DIR
8 from os.path import join, basename, splitext
10 class ImportTestCase(DakTestCase):
11 for filename in glob.glob(join(DAK_ROOT_DIR, 'dak', '*.py')):
12 cmd, ext = splitext(basename(filename))
14 def test_fn(self, cmd=cmd):
15 __import__('dak', fromlist=[cmd])
17 locals()['test_importing_%s' % cmd] = test_fn
19 if __name__ == '__main__':