From: JINMEI Tatuya Date: Tue, 30 Apr 2013 06:23:32 +0000 (-0700) Subject: [2823] updated command/config tests for stats httpd using new mock class. X-Git-Tag: bind10-1.2.0beta1-release~474^2~2^2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ee122cfa69f8bd6be3c4861407a3da35cb72bdb;p=thirdparty%2Fkea.git [2823] updated command/config tests for stats httpd using new mock class. --- diff --git a/src/bin/stats/tests/b10-stats-httpd_test.py b/src/bin/stats/tests/b10-stats-httpd_test.py index 3cd0f5fe5d..83d74cfc7b 100644 --- a/src/bin/stats/tests/b10-stats-httpd_test.py +++ b/src/bin/stats/tests/b10-stats-httpd_test.py @@ -855,9 +855,8 @@ class TestStatsHttpd(unittest.TestCase): stats_httpd.StatsHttpdDataError, self.stats_httpd.open_template, '/path/to/foo/bar') - @unittest.skipIf(True, 'tentatively skipped') def test_commands(self): - self.stats_httpd = MyStatsHttpd(get_availaddr()) + self.stats_httpd = SimpleStatsHttpd(get_availaddr()) self.assertEqual(self.stats_httpd.command_handler("status", None), isc.config.ccsession.create_answer( 0, "Stats Httpd is up. (PID " + str(os.getpid()) + ")")) @@ -870,9 +869,8 @@ class TestStatsHttpd(unittest.TestCase): isc.config.ccsession.create_answer( 1, "Unknown command: __UNKNOWN_COMMAND__")) - @unittest.skipIf(True, 'tentatively skipped') def test_config(self): - self.stats_httpd = MyStatsHttpd(get_availaddr()) + self.stats_httpd = SimpleStatsHttpd(get_availaddr()) self.assertEqual( self.stats_httpd.config_handler(dict(_UNKNOWN_KEY_=None)), isc.config.ccsession.create_answer(