From 70d87bda2563bdf7331349e3100ed5445ddb3831 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 9 Jul 2014 11:46:33 -0600 Subject: [PATCH] Update existing unit test, and add another. Signed-off-by: Zack Cerza --- teuthology/test/test_suite.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/teuthology/test/test_suite.py b/teuthology/test/test_suite.py index b92ec1566865b..9dc44a30a283b 100644 --- a/teuthology/test/test_suite.py +++ b/teuthology/test/test_suite.py @@ -1,6 +1,5 @@ import os import requests -import yaml from datetime import datetime from pytest import raises, skip @@ -76,12 +75,18 @@ class TestSuiteOnline(object): def test_config_substitution(self): # Don't attempt to send email config.results_email = None - job_config_str = suite.create_initial_config('MY_SUITE', 'master', - 'master', 'testing', - 'basic', 'centos', - 'plana') - job_config = yaml.safe_load(job_config_str) + job_config = suite.create_initial_config('MY_SUITE', 'master', + 'master', 'testing', 'basic', + 'centos', 'plana') assert job_config['suite'] == 'MY_SUITE' + def test_config_kernel_section(self): + # Don't attempt to send email + config.results_email = None + job_config = suite.create_initial_config('MY_SUITE', 'master', + 'master', 'testing', 'basic', + 'centos', 'plana') + assert job_config['kernel']['kdb'] is True + # maybe use notario for the above? -- 2.39.5