Browse Source

[2225_statistics] add a new test case TestCounter0() in case of no TEST_SPECFILE_LOCATION

Naoki Kambe 12 years ago
parent
commit
966b5ee5cf
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/lib/python/isc/statistics/tests/counter_test.py

+ 7 - 0
src/lib/python/isc/statistics/tests/counter_test.py

@@ -264,6 +264,13 @@ class BaseTestCounter():
         self.assertRaises(isc.cc.data.DataNotFoundError,
                           self.counter.get, '__undefined__')
 
+class TestCounter0(unittest.TestCase, BaseTestCounter):
+    TEST_SPECFILE_LOCATION = None
+    def setUp(self):
+        BaseTestCounter.setUp(self)
+    def tearDown(self):
+        BaseTestCounter.tearDown(self)
+
 class TestCounter1(unittest.TestCase, BaseTestCounter):
     TEST_SPECFILE_LOCATION = TESTDATA_SRCDIR + os.sep + 'test_spec1.spec'
     def setUp(self):