def test_glob_local_wildcard(self): filename = "data/*root" self.assertEqual(root_glob(filename), py_glob(filename))
def test_glob_local_single(self): filename = "data/L1Ntuple_test_3.root" self.assertEqual([filename], root_glob(filename))
def test_glob_xrootd_wildcard(): filename = "root://lcgse01.phy.bris.ac.uk///cms/store/PhEDEx_LoadTest07/"\ "LoadTest07_Debug_T2_UK_SGrid_Bristol/*" assert_equal(len(root_glob(filename)), 256)
def test_glob_xrootd_single(): filename = "root://lcgse01.phy.bris.ac.uk///cms/store/PhEDEx_LoadTest07/"\ "LoadTest07_Debug_T2_UK_SGrid_Bristol/LoadTest07_SouthGrid_Bristol_3B" assert_equal(root_glob(filename), [filename])
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_single(): with patch('glob.glob', glob.glob): filename = "/tmp/l1t/L1Ntuple_3.root" assert_equal(root_glob(filename), [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)