def test_O3_PM25_CO(self): """Test O3, PM2.5 and CO AQI""" myaqi = AQI() self.assertEqual( myaqi.aqi([(POLLUTANT_O3_8H, '0.077'), (POLLUTANT_PM25, '40.9'), (POLLUTANT_CO, '8.4')]), 104)
def test_blank_bp(self): """Test blank breakpoints""" myaqi = AQI() self.assertEqual(myaqi.iaqi(POLLUTANT_O3_8H, '0.087'), 129)
def test_O3(self): """Test Ozone AQI""" myaqi = AQI() self.assertEqual(myaqi.iaqi(POLLUTANT_O3_8H, '0.08753333'), 129) self.assertEqual(myaqi.iaqi(POLLUTANT_O3_1H, '0.162'), 147) self.assertEqual(myaqi.iaqi(POLLUTANT_O3_8H, '0.141'), 211)