def test_get_response_json_for_data_object_when_not_exists(self):
        self.MockUrllib3_request.data = self.data_json_2

        http_request = HttpRequest(url=self.url_1)
        http_request.request()
        data_json = http_request.get_data_json_by('data')
        self.assertEqual(self.data_json_empty, data_json)
    def test_get_response_json_for_data_object(self):
        from json import loads
        expected_data_json = loads(
            '{"data":[{"hi":"Man"}, {"orko":null}]}')['data']

        self.MockUrllib3_request.data = self.data_json_1

        http_request = HttpRequest(url=self.url_1)
        http_request.request()
        data_json = http_request.get_data_json_by('data')
        self.assertEqual(expected_data_json, data_json)