'cputime_for_process only considers results which have the
\'cputime\' metric type and match the specified process name.
None is returned if no results match.'

def test_cpu_usage_for_process_no_matching_results(self):

    process_name = 'test-process'
    results = [{'metric': {'type': 'wallclock'}, 'process': process_name}, {'metric': {'type': 'cputime'}, 'process': 'another-process'}]
    cputime_result = cpu_usage_for_process(results, process_name)
    self.assertEqual(cputime_result, None)
