def test_post_calls_requests(self):
        with patch('requests.post') as requests_mock, \
                response_context() as response_mock:
            requests_mock.return_value = response_mock

            request = JsonApiRequest('http://www.example.com', 'admin', 's3cr3t')
            data = request.post('ham/eggs', {'ham': True})

            requests_mock.assert_called_with(
                'http://www.example.com/api/ham/eggs',
                '{"ham": true}',
                headers={'Content-type': 'application/json', 'Accept': 'application/json'},
                auth=('admin', 's3cr3t'))
            self.assertEqual(data, {'spam': True})
wallclock_for_process returns the mean of the values from
dataset/ETHPy150Open dimagi/commcare-hq/custom/dhis2/tests.py/JsonApiRequestTest.test_post_calls_requests--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_metrics_parser.py/MetricsParserTests.test_wallclock_for_operation_calculates_result