示例#1
0
def test_powered_on_status_report():
    thruster = Thruster(max_force=15)
    Ship(port_panel=ShipPanel(side=PORT, thrusters=[thruster]))
    thruster.powered_on = False
    assert thruster.status_report["powered_on"] == thruster.powered_on, \
        "Thruster powered_on is innacurately reported"
示例#2
0
def test_is_active_status_report_no_power():
    thruster = Thruster(max_force=15)
    Ship(port_panel=ShipPanel(side=PORT, thrusters=[thruster]))
    thruster.powered_on = False
    assert thruster.status_report["is_active"] == thruster.is_active, \
        "Thruster is_active is innacurately reported"