Example #1
0
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
Example #2
0
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'))
Example #3
0
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
Example #4
0
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'))
Example #5
0
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
Example #6
0
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"))