Merge pull request #1916 from XhmikosR/patch-2

Use `assertIn` instead of `assertTrue`
This commit is contained in:
Steven Black 2022-03-07 08:14:40 -05:00 committed by GitHub
commit 945973f172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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."