Browse Source

[trac547] added more successful conditions to test_open_template

Naoki Kambe 14 years ago
parent
commit
b1610a0909
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/bin/stats/tests/b10-stats-httpd_test.py

+ 5 - 0
src/bin/stats/tests/b10-stats-httpd_test.py

@@ -340,6 +340,11 @@ class TestStatsHttpd(unittest.TestCase):
         self.stats_httpd.cc_session._socket._closed = False
 
     def test_open_template(self):
+        # successful conditions
+        self.stats_httpd.open_template(stats_httpd.XML_TEMPLATE_LOCATION)
+        self.stats_httpd.open_template(stats_httpd.XSD_TEMPLATE_LOCATION)
+        self.stats_httpd.open_template(stats_httpd.XSL_TEMPLATE_LOCATION)
+        # unsuccessful condition
         self.assertRaises(
             IOError,
             self.stats_httpd.open_template, '/path/to/foo/bar')