Lines Matching refs:result_json
626 result_json = json.loads(rv.data.decode('utf-8'))
628 assert 'data' in result_json
629 assert len(result_json['data']) == 100
647 result_json = json.loads(rv.data.decode('utf-8'))
649 assert 'result' in result_json
650 assert (len(result_json['result']) ==
653 cur_day = datetime.strptime(result_json['result'][0]['day'], day_format)
654 for day in result_json['result'][1:]:
695 result_json = json.loads(rv.data.decode('utf-8'))
696 assert 'data' in result_json
698 for line in result_json['data']:
726 result_json = json.loads(rv.data.decode('utf-8'))
727 assert 'data' in result_json
729 for line in result_json['data']:
900 result_json = json.loads(rv.data.decode('utf-8'))
902 assert 'data' in result_json
903 assert len(result_json['data']) == 6
904 for line in result_json['data']:
907 assert 'chart' in result_json
908 assert len(result_json['chart']) == 5
910 assert result_json['chart'][0]['value'] == 2
934 result_json = json.loads(rv.data.decode('utf-8'))
936 assert 'data' in result_json
937 assert len(result_json['data']) == 4
938 for line in result_json['data']:
941 assert 'chart' not in result_json
965 result_json = json.loads(rv.data.decode('utf-8'))
967 assert 'data' in result_json
968 assert len(result_json['data']) == 4
969 for line in result_json['data']:
972 assert 'chart' not in result_json
996 result_json = json.loads(rv.data.decode('utf-8'))
998 assert 'data' in result_json
999 assert len(result_json['data']) == 4
1000 for line in result_json['data']:
1003 assert 'chart' not in result_json