예제 #1
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))
예제 #2
0
 def test_glob_local_wildcard(self):
     filename = "data/*root"
     self.assertEqual(root_glob(filename), py_glob(filename))
예제 #3
0
def test_local_glob_both():
    filename = os.path.join(os.path.dirname(this_directory), "*", "*.py")
    assert_equal(ext_glob(filename), py_glob(filename))
예제 #4
0
def test_local_glob_basename():
    filename = os.path.join(this_directory, "*.py")
    assert_equal(ext_glob(filename), py_glob(filename))
예제 #5
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)
예제 #6
0
def test_local_glob_both():
    filename = os.path.join(os.path.dirname(this_directory), "*", "*.py")
    assert_equal(ext_glob(filename), py_glob(filename))
예제 #7
0
def test_local_glob_basename():
    filename = os.path.join(this_directory, "*.py")
    assert_equal(ext_glob(filename), py_glob(filename))