def test_key_to_filename_with_tuples(): a, two = os.path.split(key_to_filename(('one', 'two'))) b, three = os.path.split(key_to_filename(('one', 'three'))) assert a == b
def test_key_to_filename(): assert key_to_filename('x') == 'x' assert isinstance(key_to_filename((1, (3, 4))), str) assert re.match('^\w+$', key_to_filename('1/2'))
def test_key_to_filename_with_tuples(): a, two = os.path.split(key_to_filename(("one", "two"))) b, three = os.path.split(key_to_filename(("one", "three"))) assert a == b
def test_key_to_filename(): assert key_to_filename("x") == "x" assert isinstance(key_to_filename((1, (3, 4))), str) assert re.match("^\w+$", key_to_filename("1/2"))