def test_should_show_consumption_data(self):
     data_source = ConsumptionAndPatientsDataSource()
     generated_data = data_source.as_array(self.score, CONSUMPTION_AND_PATIENTS, F1)
     self.assertEquals(generated_data[7][1], "RAW ORDER DATA")
     self.assertEquals(generated_data[8][1], "CONSUMPTION")
     self.assertEquals(generated_data[8][4], "PATIENTS")
     self.assertEquals(generated_data[9], [])
     self.assertEquals(generated_data[10], ["", F1_QUERY, "", "", F1_PATIENT_QUERY[0], ""])
     self.assertEquals(generated_data[11], ["", FIELD_NAMES.get(ART_CONSUMPTION), 50, "", FIELD_NAMES.get(NEW), 50])
     self.assertEquals(generated_data[12], ["", FIELD_NAMES.get(PMTCT_CONSUMPTION), 50, "", FIELD_NAMES.get(EXISTING), 50])
     self.assertEquals(generated_data[13], ["", TOTAL, 100, "", TOTAL, 100])
     self.assertEquals(generated_data[14], [])
     self.assertEquals(generated_data[15], ["", "", "", "", F1_PATIENT_QUERY[1], ""])
     self.assertEquals(generated_data[16], ["", "", "", "", FIELD_NAMES.get(NEW), 50])
     self.assertEquals(generated_data[17], ["", "", "", "", FIELD_NAMES.get(EXISTING), 50])
     self.assertEquals(generated_data[18], ["", "", "", "", TOTAL, 100])
     self.assertEquals(generated_data[19], [])
     self.assertEquals(generated_data[20], [])
     self.assertEquals(generated_data[21], ["", "Conversion Ratio (packs per patient, bimonthly)"])
     self.assertEquals(generated_data[22], ["", F1_QUERY, 2.0])
     self.assertEquals(generated_data[23], [])
     self.assertEquals(generated_data[24], [])
     self.assertEquals(generated_data[25], ["", "ESTIMATED CURRENT PATIENTS"])
     self.assertEquals(generated_data[26], ["", "From Consumption Data", "", "", "From Patient Data"])
     self.assertEquals(generated_data[27], ["", F1_QUERY, 50.0, "", F1_PATIENT_QUERY[0], 100.0])
     self.assertEquals(generated_data[28], ["", "TOTAL", 50.0, "", "TDF/3TC/EFV (ADULT)", 100.0])
     self.assertEquals(generated_data[29], ["", "", "", "", "TOTAL", 200])
 def test_should_show_check_name(self):
     data_source = ConsumptionAndPatientsDataSource()
     generated_data = data_source.as_array(self.score, CONSUMPTION_AND_PATIENTS, F1)
     self.assertEquals(generated_data[1][1], TEST_NAMES.get(CONSUMPTION_AND_PATIENTS))
     self.assertEquals(generated_data[2][0], "")
     self.assertEquals(generated_data[3], ["", "Facility", "District", "Warehouse", "IP", "Cycle", "Formulation", "Result"])
     self.assertEquals(generated_data[4], ["", self.score.name, self.score.district, self.score.warehouse, self.score.ip, self.score.cycle, F1, YES])
     self.assertEquals(generated_data[5][0], "")
     self.assertEquals(generated_data[6][0], "")
     self.assertEquals(generated_data[7][1], "RAW ORDER DATA")