From b54dd33dbd28ef4193b3ba48d732adfda1fc3d32 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 2 Jul 2023 10:11:59 +0200 Subject: [PATCH] Explain why 'st' is checked too --- test/test_irclib.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_irclib.py b/test/test_irclib.py index 703d6f5fd..06a921176 100644 --- a/test/test_irclib.py +++ b/test/test_irclib.py @@ -615,6 +615,8 @@ class IrcStateTestCase(SupyTestCase): with self.assertRaises(KeyError): st2.nickToAccount('foo') self.assertEqual(st2.nickToAccount('bar'), 'account2') + + # check st isn't affected by changes to st2 self.assertEqual(st.nickToAccount('foo'), 'account1') self.assertEqual(st.nickToAccount('bar'), 'account2') @@ -627,6 +629,8 @@ class IrcStateTestCase(SupyTestCase): st2.nickToAccount('foo') self.assertEqual(st2.nickToAccount('foo2'), 'account1') self.assertEqual(st2.nickToAccount('bar'), 'account2') + + # check st isn't affected by changes to st2 self.assertEqual(st.nickToAccount('foo'), 'account1') self.assertEqual(st.nickToAccount('bar'), 'account2') @@ -638,6 +642,8 @@ class IrcStateTestCase(SupyTestCase): with self.assertRaises(KeyError): st2.nickToAccount('foo') self.assertEqual(st2.nickToAccount('bar'), 'account1') + + # check st isn't affected by changes to st2 self.assertEqual(st.nickToAccount('foo'), 'account1') self.assertEqual(st.nickToAccount('bar'), 'account2')