Parcourir la source

[2252] update documentation for the test cases

Naoki Kambe il y a 12 ans
Parent
commit
4b79543220
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      src/bin/xfrin/tests/xfrin_test.py

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

@@ -2208,8 +2208,8 @@ class TestStatisticsXfrinAXFRv4(TestStatisticsXfrinConn):
 
     def test_axfrreq_xfrsuccess_last_axfr_duration2(self):
         '''tests that axfrreqv4 or axfrreqv6 and xfrsuccess counters
-        and last_axfr_duration timer are incremented even if a successful
-        XfrinZoneUptodate is raised while handling an xfr response'''
+        and last_axfr_duration timer are incremented when raising
+        XfrinZoneUptodate. The exception is treated as success.'''
         def exception_raiser():
             raise XfrinZoneUptodate()
         self.conn._handle_xfrin_responses = exception_raiser
@@ -2257,8 +2257,8 @@ class TestStatisticsXfrinIXFRv4(TestStatisticsXfrinConn):
 
     def test_ixfrreq_xfrsuccess_last_ixfr_duration2(self):
         '''tests that ixfrreqv4 or ixfrreqv6 and xfrsuccess counters
-        and last_ixfr_duration timer are incremented even if a successful
-        XfrinZoneUptodate is raised while handling an xfr response'''
+        and last_ixfr_duration timer are incremented when raising
+        XfrinZoneUptodate. The exception is treated as success.'''
         def exception_raiser():
             raise XfrinZoneUptodate()
         self.conn._handle_xfrin_responses = exception_raiser