git.99rst.org
/
stevenblack-hosts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e6da3b0
)
Use `assertIn` instead of `assertTrue`
author
XhmikosR
<redacted>
Mon, 7 Mar 2022 07:08:23 +0000
(09:08 +0200)
committer
GitHub
<redacted>
Mon, 7 Mar 2022 07:08:23 +0000
(09:08 +0200)
testUpdateHostsFile.py
patch
|
blob
|
history
diff --git
a/testUpdateHostsFile.py
b/testUpdateHostsFile.py
index 1562bafea17f4b56dd1c80301fc7b524b581d4f6..429afff912c6c369063666dc7d6de73c5e50e920 100644
(file)
--- a/
testUpdateHostsFile.py
+++ b/
testUpdateHostsFile.py
@@
-1765,7
+1765,7
@@
class TestIsValidUserProvidedDomainFormat(BaseStdout):
output = sys.stdout.getvalue()
expected = "You didn't enter a domain. Try again."
- self.assert
True(expected in
output)
+ self.assert
In(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