def test_get_test_x_log(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']
    log = get_test_debug_log(project, exc['timestamp'], test_name, test_set, suite=exc['suite_name'])
    assert ('root DEBUG test does not have setup function' in log)
    log = get_test_debug_log(project, exc['timestamp'], test_name, 'inexistent_test_set', suite=exc['suite_name'])
    assert (log is None)
    log = get_test_debug_log(project, exc['timestamp'], 'inexistent_test_name', test_set, suite=exc['suite_name'])
    assert (log is None)
def test_get_test_x_log(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']
    log = get_test_debug_log(project, exc['timestamp'], test_name, test_set, suite=exc['suite_name'])
    assert ('root DEBUG test does not have setup function' in log)
    log = get_test_debug_log(project, exc['timestamp'], test_name, 'inexistent_test_set', suite=exc['suite_name'])
    assert (log is None)
    log = get_test_debug_log(project, exc['timestamp'], 'inexistent_test_name', test_set, suite=exc['suite_name'])
    assert (log is None)