def test_side_effect(zip_error, script, filename):
    zip_error(filename)
    side_effect(Command(script=script), None)

    dir_list = os.listdir(u'.')
    if filename not in set(dir_list):
        filename = normalize('NFD', filename)

    assert set(dir_list) == {filename, 'd'}
Example #2
0
def test_side_effect(zip_error, script, filename):
    zip_error(filename)
    side_effect(Command(script=script), None)

    dir_list = os.listdir(u'.')
    if filename not in set(dir_list):
        filename = normalize('NFD', filename)

    assert set(dir_list) == {filename, 'd'}
Example #3
0
def test_side_effect(zip_error, script, filename):
    zip_error(filename)
    side_effect(Command(script, ""), None)

    dir_list = os.listdir(u".")
    if filename not in set(dir_list):
        filename = normalize("NFD", filename)

    assert set(dir_list) == {filename, "d"}
Example #4
0
def test_side_effect(zip_error, script):
    side_effect(Command(script=script), None)
    assert(os.listdir('.') == ['foo.zip'])
Example #5
0
def test_side_effect(zip_error, script):
    side_effect(Command(script=script), None)
    assert set(os.listdir(".")) == {"foo.zip", "d"}
Example #6
0
def test_side_effect(zip_error, script):
    side_effect(Command(script=script), None)
    assert set(os.listdir('.')) == {'foo.zip', 'd'}
Example #7
0
def test_side_effect(zip_error, script):
    side_effect(Command(script=script), None, None)
    assert(os.listdir('.') == ['foo.zip'])