|
@@ -114,6 +114,12 @@ class SessionTestBase(unittest.TestCase):
|
|
|
self._acl_map))
|
|
|
self._session._UpdateSession__get_update_zone()
|
|
|
|
|
|
+ def tearDown(self):
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ self._session = None
|
|
|
+
|
|
|
def check_response(self, msg, expected_rcode):
|
|
|
'''Perform common checks on update resposne message.'''
|
|
|
self.assertTrue(msg.get_header_flag(Message.HEADERFLAG_QR))
|
|
@@ -282,12 +288,6 @@ class SessionTest(SessionTestBase):
|
|
|
|
|
|
self.assertEqual(expected, strings)
|
|
|
|
|
|
- def __prereq_helper(self, method, expected, rrset):
|
|
|
- '''Calls the given method with self._datasrc_client
|
|
|
- and the given rrset, and compares the return value.
|
|
|
- Function does not do much but makes the code look nicer'''
|
|
|
- self.assertEqual(expected, method(rrset))
|
|
|
-
|
|
|
def __check_prerequisite_exists_combined(self, method, rrclass, expected):
|
|
|
'''shared code for the checks for the very similar (but reversed
|
|
|
in behaviour) methods __prereq_rrset_exists and
|