def test_sector_data(self): self.assertDictEqual( get_enrolled_children_sector_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": "Total number of children between the age" " of 0 - 6 years who are enrolled for ICDS services", "tooltips_data": { "s2": { "valid": 214 }, "s1": { "valid": 103 } }, "chart_data": [{ "color": "#006fdf", "classed": "dashed", "strokeWidth": 2, "values": [["s1", 103], ["s2", 214]], "key": "" }], "format": "number" })
def test_sector_data(self): self.assertDictEqual( get_enrolled_children_sector_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": percent_children_enrolled_help_text(), "tooltips_data": { "s2": { 'all': 214, "valid": 214 }, "s1": { 'all': 103, "valid": 103 } }, "chart_data": [{ "color": MapColors.BLUE, "classed": "dashed", "strokeWidth": 2, "values": [["s1", 103], ["s2", 214]], "key": "" }], "format": "number" })
def test_sector_data(self): self.assertDictEqual( get_enrolled_children_sector_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": percent_children_enrolled_help_text(), "tooltips_data": { "s2": { 'all': 214, "valid": 214 }, "s1": { 'all': 103, "valid": 103 } }, "chart_data": [ { "color": MapColors.BLUE, "classed": "dashed", "strokeWidth": 2, "values": [ [ "s1", 103 ], [ "s2", 214 ] ], "key": "" } ], "format": "number" } )