def test_question_mark(self): assert _wildcard_match_path('test.txt', 'test.tx?') assert not _wildcard_match_path('test.bmp', 'test.tx?')
def test_two_asterisks(self): assert _wildcard_match_path("directory/file.txt", "**.txt") assert not _wildcard_match_path("directory/file.bmp", "**.txt")
def test_exact_match(self): assert _wildcard_match_path('text.txt', 'text.txt') assert not _wildcard_match_path('text.txt', 'toast.bmp')
def test_asterisk(self): assert _wildcard_match_path("test.txt", "test*") assert not _wildcard_match_path("toast.txt", "test*")
def test_asterisk_without_slash(self): assert _wildcard_match_path("directory/file.txt", "directory/*.txt") assert not _wildcard_match_path("directory/file.txt", "*.txt")
def test_question_mark(self): assert _wildcard_match_path("test.txt", "test.tx?") assert not _wildcard_match_path("test.bmp", "test.tx?")
def test_exact_match(self): assert _wildcard_match_path("text.txt", "text.txt") assert not _wildcard_match_path("text.txt", "toast.bmp")
def test_two_asterisks(self): assert _wildcard_match_path('directory/file.txt', '**.txt') assert not _wildcard_match_path('directory/file.bmp', '**.txt')
def test_asterisk_without_slash(self): assert _wildcard_match_path('directory/file.txt', 'directory/*.txt') assert not _wildcard_match_path('directory/file.txt', '*.txt')
def test_asterisk(self): assert _wildcard_match_path('test.txt', 'test*') assert not _wildcard_match_path('toast.txt', 'test*')