def test_oxygen_analysis1(capsys): """Testing oxygen_analysis""" stats = entity.MeasurementStatistics() assert stats.ok_count == 0 assert stats.minor_count == 0 assert stats.major_count == 0 assert stats.life_threatening_count == 0 assert stats.missing_count == 0 assert entity.StatusEnum.MISSING == processor.oxygen_analysis(-1, stats) assert stats.ok_count == 0 assert stats.minor_count == 0 assert stats.major_count == 0 assert stats.life_threatening_count == 0 assert stats.missing_count == 1
def test_oxygen_analysis20(capsys): """Testing oxygen_analysis""" stats = entity.MeasurementStatistics() assert stats.ok_count == 0 assert stats.minor_count == 0 assert stats.major_count == 0 assert stats.life_threatening_count == 0 assert stats.missing_count == 0 assert processor.oxygen_analysis(100, stats) == entity.StatusEnum.OK assert stats.missing_count == 0 assert stats.ok_count == 1 assert stats.minor_count == 0 assert stats.major_count == 0 assert stats.life_threatening_count == 0