mirror of
https://github.com/StevenBlack/hosts.git
synced 2026-07-01 02:36:52 +00:00
Use assertIn instead of assertTrue
This commit is contained in:
@@ -1765,7 +1765,7 @@ class TestIsValidUserProvidedDomainFormat(BaseStdout):
|
|||||||
output = sys.stdout.getvalue()
|
output = sys.stdout.getvalue()
|
||||||
expected = "You didn't enter a domain. Try again."
|
expected = "You didn't enter a domain. Try again."
|
||||||
|
|
||||||
self.assertTrue(expected in output)
|
self.assertIn(expected, output)
|
||||||
|
|
||||||
def test_invalid_domain(self):
|
def test_invalid_domain(self):
|
||||||
expected = "Do not include www.domain.com or http(s)://domain.com. Try again."
|
expected = "Do not include www.domain.com or http(s)://domain.com. Try again."
|
||||||
|
|||||||
Reference in New Issue
Block a user