Exemplo n.º 1
0
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
Exemplo n.º 2
0
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
Exemplo n.º 3
0
def test_sanitize_doubledot():
    t = 'The Smile Song..mp3'
    expected = 'The Smile Song.mp3'
    assert filenames.sanitize(t) == expected
Exemplo n.º 4
0
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
Exemplo n.º 5
0
def test_sanitize_ampersand():
    t = 'The Smile Song & Pinkie Pie'
    expected = 'The Smile Song x Pinkie Pie'
    assert filenames.sanitize(t) == expected
Exemplo n.º 6
0
def test_sanitize_exclamation():
    t = 'The Smile Song!'
    expected = 'The Smile Song'
    assert filenames.sanitize(t) == expected
Exemplo n.º 7
0
def test_sanitize_slashes2():
    t = 'The/Smile\\Song'
    expected = 'The Smile Song'
    assert filenames.sanitize(t) == expected
Exemplo n.º 8
0
def test_sanitize_underscores():
    t = 'The_Smile_Song'
    expected = 'The Smile Song'
    assert filenames.sanitize(t) == expected
Exemplo n.º 9
0
def test_sanitize_parens():
    t = '(The Smile Song)'
    expected = '[The Smile Song]'
    assert filenames.sanitize(t) == expected