Browse Source

[2823] updated command/config tests for stats httpd using new mock class.

JINMEI Tatuya 12 years ago
parent
commit
5ee122cfa6
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/bin/stats/tests/b10-stats-httpd_test.py

+ 2 - 4
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(