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])
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])
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])
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])