def test_get_test_case_data(self, project_class, test_utils):
    (_, project) = project_class.activate()
    exc = test_utils.execute_random_suite(project)
    test_name = exc['exec_data']['tests'][0]['name']
    test_set = exc['exec_data']['tests'][0]['test_set']
    test_data = get_test_case_data(project, test_name, exc['suite_name'], exc['timestamp'], test_set)
    assert (test_data['name'] == exc['tests'][0])
    assert (isinstance(test_data['debug_log'], list) and len(test_data['debug_log']))
    assert (isinstance(test_data['info_log'], list) and len(test_data['info_log']))
    assert (test_data['has_finished'] is True)
def test_get_test_case_data(self, project_class, test_utils):
    (_, project) = project_class.activate()
    exc = test_utils.execute_random_suite(project)
    test_name = exc['exec_data']['tests'][0]['name']
    test_set = exc['exec_data']['tests'][0]['test_set']
    test_data = get_test_case_data(project, test_name, exc['suite_name'], exc['timestamp'], test_set)
    assert (test_data['name'] == exc['tests'][0])
    assert (isinstance(test_data['debug_log'], list) and len(test_data['debug_log']))
    assert (isinstance(test_data['info_log'], list) and len(test_data['info_log']))
    assert (test_data['has_finished'] is True)