def test_rmjunk_variations(): t = 'The Smile Song(FULL VERSION)[FULL VERSION]' t = filenames.sanitize(t) # Sanitize should be used first expected = 'The Smile Song' assert filenames.rm_junk(t) == expected
def test_rmjunk_ugly(): t = 'The Smile Song(1080p)[HD][FULL VERSION][lyrics](Out Now)' t = filenames.sanitize(t) # Sanitize should be used first expected = 'The Smile Song' assert filenames.rm_junk(t) == expected
def test_sanitize_doubledot(): t = 'The Smile Song..mp3' expected = 'The Smile Song.mp3' assert filenames.sanitize(t) == expected
def test_rmjunk_easy(): t = 'The Smile Song(AMV)' t = filenames.sanitize(t) # Sanitize should be used first expected = 'The Smile Song' assert filenames.rm_junk(t) == expected
def test_sanitize_ampersand(): t = 'The Smile Song & Pinkie Pie' expected = 'The Smile Song x Pinkie Pie' assert filenames.sanitize(t) == expected
def test_sanitize_exclamation(): t = 'The Smile Song!' expected = 'The Smile Song' assert filenames.sanitize(t) == expected
def test_sanitize_slashes2(): t = 'The/Smile\\Song' expected = 'The Smile Song' assert filenames.sanitize(t) == expected
def test_sanitize_underscores(): t = 'The_Smile_Song' expected = 'The Smile Song' assert filenames.sanitize(t) == expected
def test_sanitize_parens(): t = '(The Smile Song)' expected = '[The Smile Song]' assert filenames.sanitize(t) == expected