def test_glob_local_multiple_wildcards(): with patch('glob.glob', glob.glob): filename = "/tmp/l*/*.root" from glob import glob as py_glob assert_equal(root_glob(filename), py_glob(filename))
def test_glob_local_wildcard(self): filename = "data/*root" self.assertEqual(root_glob(filename), py_glob(filename))
def test_local_glob_both(): filename = os.path.join(os.path.dirname(this_directory), "*", "*.py") assert_equal(ext_glob(filename), py_glob(filename))
def test_local_glob_basename(): filename = os.path.join(this_directory, "*.py") assert_equal(ext_glob(filename), py_glob(filename))
def test_glob_local_wildcard(): with patch('glob.glob', glob.glob): filename = "/tmp/l1t/*.root" from glob import glob as py_glob assert root_glob(filename) == py_glob(filename)