Exemplo n.º 1
0
 def test_basic(self):
     if is_windows():
         res = split_scan_dirs(u":Z:\\foo:C:/windows:")
         self.assertEquals(res, [u"Z:\\foo", u"C:/windows"])
     else:
         res = split_scan_dirs(":%s:%s:" % (STANDARD_PATH, OTHER_PATH))
         self.assertEquals(res, [STANDARD_PATH, OTHER_PATH])
Exemplo n.º 2
0
 def test_basic(self):
     if ON_WINDOWS:
         res = split_scan_dirs(r":Z:\foo:C:/windows:")
         self.assertEquals(res, [r"Z:\foo", "C:/windows"])
     else:
         res = split_scan_dirs(":%s:%s:" % (STANDARD_PATH, OTHER_PATH))
         self.assertEquals(res, [STANDARD_PATH, OTHER_PATH])
Exemplo n.º 3
0
 def test_basic(self):
     if is_windows():
         res = split_scan_dirs(u":Z:\\foo:C:/windows:")
         self.assertEquals(res, [u"Z:\\foo", u"C:/windows"])
     else:
         res = split_scan_dirs(":%s:%s:" % (STANDARD_PATH, OTHER_PATH))
         self.assertEquals(res, [STANDARD_PATH, OTHER_PATH])
Exemplo n.º 4
0
 def test_colon_paths(self):
     if not is_windows():
         res = split_scan_dirs(
             ":%s:%s" % (STANDARD_PATH, GVFS_PATH_ESCAPED))
         self.assertEquals(res, [STANDARD_PATH, GVFS_PATH])
Exemplo n.º 5
0
 def test_colon_paths(self):
     if not ON_WINDOWS:
         res = split_scan_dirs(
             ":%s:%s" % (STANDARD_PATH, GVFS_PATH_ESCAPED))
         self.assertEquals(res, [STANDARD_PATH, GVFS_PATH])