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]
Ejemplo n.º 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]
Ejemplo n.º 4
0
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]
Ejemplo n.º 5
0
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]
Ejemplo n.º 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]