Use `assertIn` instead of `assertTrue`
authorXhmikosR <redacted>
Mon, 7 Mar 2022 07:08:23 +0000 (09:08 +0200)
committerGitHub <redacted>
Mon, 7 Mar 2022 07:08:23 +0000 (09:08 +0200)
testUpdateHostsFile.py

index 1562bafea17f4b56dd1c80301fc7b524b581d4f6..429afff912c6c369063666dc7d6de73c5e50e920 100644 (file)
@@ -1765,7 +1765,7 @@ class TestIsValidUserProvidedDomainFormat(BaseStdout):
         output = sys.stdout.getvalue()
         expected = "You didn't enter a domain. Try again."
 
-        self.assertTrue(expected in output)
+        self.assertIn(expected, output)
 
     def test_invalid_domain(self):
         expected = "Do not include www.domain.com or http(s)://domain.com. Try again."
git clone https://git.99rst.org/PROJECT