def test_powered_on_status_report(): reactor = Sensor(base_range=2000, focus=90, pitch=90, yaw=90) reactor.powered_on = False assert reactor.status_report["powered_on"] == reactor.powered_on, \ "Sensor powered_on is innacurately reported"
def test_is_active_status_report_no_power(): reactor = Sensor(base_range=2000, focus=90, pitch=90, yaw=90) reactor.powered_on = False assert reactor.status_report["is_active"] == reactor.is_active, \ "Sensor is_active is innacurately reported"