コード例 #1
0
 def test_glob_local_wildcard(self):
     filename = "data/*root"
     self.assertEqual(root_glob(filename), py_glob(filename))
コード例 #2
0
 def test_glob_local_single(self):
     filename = "data/L1Ntuple_test_3.root"
     self.assertEqual([filename], root_glob(filename))
コード例 #3
0
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)
コード例 #4
0
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])
コード例 #5
0
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))
コード例 #6
0
def test_glob_local_single():
    with patch('glob.glob', glob.glob):
        filename = "/tmp/l1t/L1Ntuple_3.root"
        assert_equal(root_glob(filename), [filename])
コード例 #7
0
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)