Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2022-01-05 01:59:58 +0300
committerGitHub <noreply@github.com>2022-01-05 01:59:58 +0300
commited7964b424345b5d8ad98335be8f98d5c21059a6 (patch)
treee7feeb7e5d84c77a589b659c993a7112a38b6bf0 /certbot-nginx/tests/nginxparser_test.py
parent97a09dee19273a6c43aa71edc04ecfae3e761314 (diff)
Improve assertions in nginx and DNS plugin tests. (#9157)
* Improve assertions in nginx and DNS plugin tests. * Use assertIs for asserting is True/False.
Diffstat (limited to 'certbot-nginx/tests/nginxparser_test.py')
-rw-r--r--certbot-nginx/tests/nginxparser_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/certbot-nginx/tests/nginxparser_test.py b/certbot-nginx/tests/nginxparser_test.py
index 8f7d5accf..d8f0a5909 100644
--- a/certbot-nginx/tests/nginxparser_test.py
+++ b/certbot-nginx/tests/nginxparser_test.py
@@ -432,15 +432,15 @@ class TestUnspacedList(unittest.TestCase):
self.assertEqual(ul3, ["some", "things", "why", "did", "whether"])
def test_is_dirty(self):
- self.assertEqual(False, self.ul2.is_dirty())
+ self.assertIs(self.ul2.is_dirty(), False)
ul3 = UnspacedList([])
ul3.append(self.ul)
- self.assertEqual(False, self.ul.is_dirty())
- self.assertEqual(True, ul3.is_dirty())
+ self.assertIs(self.ul.is_dirty(), False)
+ self.assertIs(ul3.is_dirty(), True)
ul4 = UnspacedList([[1], [2, 3, 4]])
- self.assertEqual(False, ul4.is_dirty())
+ self.assertIs(ul4.is_dirty(), False)
ul4[1][2] = 5
- self.assertEqual(True, ul4.is_dirty())
+ self.assertIs(ul4.is_dirty(), True)
if __name__ == '__main__':