def test_is_not_a_module(self): """Tests of a file is not a python module """ self.assertFalse(is_module('file', '.txt')) self.assertFalse(is_module('__init__', '.py'))
def test_is_a_module(self): """Tests if a file is a python module """ self.assertTrue(is_module('module', '.py'))