<filename>tests/test_lowercase.py<gh_stars>1-10
from regex_rename.bulk import match_filename


def test_replace_lowercase():
    match = match_filename('ABC-DEF.mp3', r'([A-Z]+)-([A-Z]+).mp3', '\\L\\1-\\2.mp3', 
                           full=False, padding=0, testing=False)
    assert match is not None
    assert match.name_to == 'abc-DEF.mp3'


def test_replace_uppercase():
    match = match_filename('abc-def.mp3', r'([a-z]+)-([a-z]+).mp3', '\\1-\\U\\2.mp3', 
                           full=False, padding=0, testing=False)
    assert match is not None
    assert match.name_to == 'abc-DEF.mp3'

<filename>tests/test_lowercase.py<gh_stars>1-10
from regex_rename.bulk import match_filename


def test_replace_lowercase():
    match = match_filename('ABC-DEF.mp3', r'([A-Z]+)-([A-Z]+).mp3', '\\L\\1-\\2.mp3', 
                           full=False, padding=0, testing=False)
    assert match is not None
    assert match.name_to == 'abc-DEF.mp3'


def test_replace_uppercase():
    match = match_filename('abc-def.mp3', r'([a-z]+)-([a-z]+).mp3', '\\1-\\U\\2.mp3', 
                           full=False, padding=0, testing=False)
    assert match is not None
    assert match.name_to == 'abc-DEF.mp3'
