def test_forward_slash(self): assert list(tokenize_path("foo/bar")) == ["bar", "foo"]
def test_relative_paths(self): assert list(tokenize_path('./')) == ['.'] assert list(tokenize_path('./../')) == ['..', '.'] assert list(tokenize_path('./foo/bar')) == ['bar', 'foo', '.'] assert list(tokenize_path('.\\foo\\bar')) == ['bar', 'foo', '.']
def test_path_with_spaces(self): assert list(tokenize_path('\\foo bar\\bar')) == ['bar', 'foo bar']
def test_tokenize_path(): assert list(tokenize_path('foo/bar')) == ['bar', 'foo'] assert list(tokenize_path('foo\\bar')) == ['bar', 'foo'] assert list(tokenize_path('foo.bar')) == ['foo.bar'] assert list(tokenize_path('/foo/bar')) == ['bar', 'foo']
def test_additional_slash_in_front(self): assert list(tokenize_path('/foo/bar')) == ['bar', 'foo'] assert list(tokenize_path('\\foo\\bar')) == ['bar', 'foo']
def test_additional_slash_in_front(self): assert list(tokenize_path("/foo/bar")) == ["bar", "foo"] assert list(tokenize_path("\\foo\\bar")) == ["bar", "foo"]
def test_path_with_spaces(self): assert list(tokenize_path("\\foo bar\\bar")) == ["bar", "foo bar"]
def test_path_with_spaces(self): assert list(tokenize_path('\\foo bar\\bar')) == ['bar', 'foo bar']
def test_no_path(self): assert list(tokenize_path('/')) == []
def test_additional_slash_in_front(self): assert list(tokenize_path('/foo/bar')) == ['bar', 'foo'] assert list(tokenize_path('\\foo\\bar')) == ['bar', 'foo']
def test_relative_paths(self): assert list(tokenize_path('./')) == ['.'] assert list(tokenize_path('./../')) == ['..', '.'] assert list(tokenize_path('./foo/bar')) == ['bar', 'foo', '.'] assert list(tokenize_path('.\\foo\\bar')) == ['bar', 'foo', '.']
def test_dot_does_not_separate(self): assert list(tokenize_path('foo.bar')) == ['foo.bar']
def test_back_slash(self): assert list(tokenize_path('foo\\bar')) == ['bar', 'foo']
def test_forward_slash(self): assert list(tokenize_path('foo/bar')) == ['bar', 'foo']
def test_back_slash(self): assert list(tokenize_path("foo\\bar")) == ["bar", "foo"]
def test_forward_slash(self): assert list(tokenize_path('foo/bar')) == ['bar', 'foo']
def test_dot_does_not_separate(self): assert list(tokenize_path("foo.bar")) == ["foo.bar"]
def test_back_slash(self): assert list(tokenize_path('foo\\bar')) == ['bar', 'foo']
def test_relative_paths(self): assert list(tokenize_path("./")) == ["."] assert list(tokenize_path("./../")) == ["..", "."] assert list(tokenize_path("./foo/bar")) == ["bar", "foo", "."] assert list(tokenize_path(".\\foo\\bar")) == ["bar", "foo", "."]
def test_dot_does_not_separate(self): assert list(tokenize_path('foo.bar')) == ['foo.bar']
def test_no_path(self): assert list(tokenize_path("/")) == []
def test_tokenize_path(): assert list(tokenize_path('foo/bar')) == ['bar', 'foo'] assert list(tokenize_path('foo\\bar')) == ['bar', 'foo'] assert list(tokenize_path('foo.bar')) == ['foo.bar']