def test_get_new_management_command_subcommand(wrong, fixed, output):
    command = Command("docker {}".format(wrong), output)
    assert get_new_command(command) == ["docker {}".format(x) for x in fixed]
def test_get_new_command(wrong, fixed):
    command = Command("docker {}".format(wrong), output(wrong))
    assert get_new_command(command) == ["docker {}".format(x) for x in fixed]
Beispiel #3
0
def test_get_new_command(wrong, fixed):
    command = Command('docker {}'.format(wrong), stderr=stderr(wrong))
    assert get_new_command(command) == ['docker {}'.format(x) for x in fixed]
def test_get_new_command(wrong, fixed):
    command = Command('docker {}'.format(wrong), output(wrong))
    assert get_new_command(command) == ['docker {}'.format(x) for x in fixed]
def test_get_new_command(wrong, fixed):
    command = Command('docker {}'.format(wrong), stderr=stderr(wrong))
    assert get_new_command(command, None) == ['docker {}'.format(x) for x in fixed]
Beispiel #6
0
def test_get_new_management_command(wrong, fixed):
    command = Command('docker {}'.format(wrong), output(wrong))
    assert get_new_command(command) == ['docker {}'.format(x) for x in fixed]