Browse Source

[2252] update a fake class name to camel convention including a typo fix

Naoki Kambe 12 years ago
parent
commit
1cef6595d1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bin/xfrin/tests/xfrin_test.py

+ 2 - 2
src/bin/xfrin/tests/xfrin_test.py

@@ -2135,10 +2135,10 @@ class TestStatisticsXfrinConn(TestXfrinConnection):
         self.__orig_start_timer = isc.statistics.counters._start_timer
         self.__orig_start_timer = isc.statistics.counters._start_timer
         time1 = datetime(2000, 1, 1, 0, 0, 0, 0)
         time1 = datetime(2000, 1, 1, 0, 0, 0, 0)
         time2 = datetime(2000, 1, 1, 0, 0, 0, 1)
         time2 = datetime(2000, 1, 1, 0, 0, 0, 1)
-        class fakedatatime:
+        class FakeDateTime:
             @classmethod
             @classmethod
             def now(cls): return time2
             def now(cls): return time2
-        isc.statistics.counters.datetime = fakedatatime
+        isc.statistics.counters.datetime = FakeDateTime
         isc.statistics.counters._start_timer = lambda : time1
         isc.statistics.counters._start_timer = lambda : time1
         delta = time2 - time1
         delta = time2 - time1
         self._const_sec = round(delta.days * 86400 + delta.seconds +
         self._const_sec = round(delta.days * 86400 + delta.seconds +