Exemple #1
0
def test_lor_integrity_status_report():
    reactor = Sensor(base_range=2000, focus=90, pitch=90, yaw=90)
    reactor.degrade(0.5)
    assert reactor.status_report["integrity"] == reactor.integrity, \
        "Sensor integrity is innacurately reported"
Exemple #2
0
def test_is_active_status_report_no_integrity():
    reactor = Sensor(base_range=2000, focus=90, pitch=90, yaw=90)
    reactor.degrade(1)
    assert reactor.status_report["is_active"] == reactor.is_active, \
        "Sensor is_active is innacurately reported"