def test_thrusters_run_1(): object = Thrusters(TEST1) output, phases = object.get_best_output() assert output == 43210 assert phases == [4, 3, 2, 1, 0]
def test_thrusters_run_2(): object = Thrusters(TEST2) output, phases = object.get_best_output() assert output == 54321 assert phases == [0, 1, 2, 3, 4]
def test_thrusters_values(): object = Thrusters(TEST1) for value in object.amps: assert isinstance(value, Amplifier) assert value.software == TEST1 assert object.phases == [0, 1, 2, 3, 4]
def test_thrusters_create(): object = Thrusters(TEST1) assert isinstance(object, Thrusters)
def test_thrusters_feedback_run_2(): object = Thrusters(FEEDBACK_TEST2) output, phases = object.get_best_feedback_output() assert output == 18216 assert phases == [9, 7, 8, 5, 6]
def test_thrusters_feedback_run_1(): object = Thrusters(FEEDBACK_TEST1) output, phases = object.get_best_feedback_output() assert output == 139629729 assert phases == [9, 8, 7, 6, 5]
def test_thrusters_run_3(): object = Thrusters(TEST3) output, phases = object.get_best_output() assert output == 65210 assert phases == [1, 0, 4, 3, 2]