def test_sector_data(self): self.assertDictEqual( get_early_initiation_breastfeeding_data('icds-cas', config={ 'month': (2017, 5, 1), 'state_id': 'st1', 'district_id': 'd1', 'block_id': 'b1', 'aggregation_level': 4 }, location_id='b1', loc_level='supervisor'), { "info": early_initiation_breastfeeding_help_text(html=True), "tooltips_data": { "s2": { "in_month": 0, "birth": 0 }, "s1": { "in_month": 1, "birth": 0 } }, "chart_data": [{ "color": MapColors.BLUE, "classed": "dashed", "strokeWidth": 2, "values": [["s1", 0.0], ["s2", 0.0]], "key": "" }] })
def test_sector_data(self): self.assertDictEqual( get_early_initiation_breastfeeding_data('icds-cas', config={ 'month': (2017, 5, 1), 'state_id': 'st1', 'district_id': 'd1', 'block_id': 'b1', 'aggregation_level': 4 }, location_id='b1', loc_level='supervisor'), { "info": "Percentage of children who were put to the breast within one hour of birth." "<br/><br/>Early initiation of breastfeeding ensure the newborn recieves the 'first milk'" " rich in nutrients and encourages exclusive breastfeeding practice", "tooltips_data": { "s2": { "in_month": 0, "birth": 0 }, "s1": { "in_month": 1, "birth": 0 } }, "chart_data": [{ "color": MapColors.BLUE, "classed": "dashed", "strokeWidth": 2, "values": [["s1", 0.0], ["s2", 0.0]], "key": "" }] })
def test_sector_data(self): self.assertDictEqual( get_early_initiation_breastfeeding_data( 'icds-cas', config={ 'month': (2017, 5, 1), 'state_id': 'st1', 'district_id': 'd1', 'block_id': 'b1', 'aggregation_level': 4 }, location_id='b1', loc_level='supervisor' ), { "info": early_initiation_breastfeeding_help_text(html=True), "tooltips_data": { "s2": { "in_month": 0, "birth": 0 }, "s1": { "in_month": 1, "birth": 0 } }, "chart_data": [ { "color": MapColors.BLUE, "classed": "dashed", "strokeWidth": 2, "values": [ [ "s1", 0.0 ], [ "s2", 0.0 ] ], "key": "" } ] } )