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:
43fe301
)
Updated test
author
Max G
<redacted>
Fri, 10 Jul 2020 20:43:09 +0000
(23:43 +0300)
committer
Max G
<redacted>
Fri, 10 Jul 2020 20:43:09 +0000
(23:43 +0300)
testUpdateHostsFile.py
patch
|
blob
|
history
diff --git
a/testUpdateHostsFile.py
b/testUpdateHostsFile.py
index 62616dbc9506d0f75c93c74370b64081868bd157..8a3b4e49dcd6dcd1106ae8d7c2d1b0198f21afe6 100644
(file)
--- a/
testUpdateHostsFile.py
+++ b/
testUpdateHostsFile.py
@@
-1324,7
+1324,7
@@
class TestFlushDnsCache(BaseStdout):
self.assertIn(expected, output)
@mock.patch("os.path.isfile", side_effect=[True, False, False, True] + [False] * 10)
- @mock.patch("subprocess.call", side_effect=[1, 0])
+ @mock.patch("subprocess.call", side_effect=[1, 0
, 0
])
def test_flush_posix_fail_then_succeed(self, *_):
with self.mock_property("platform.system") as obj:
obj.return_value = "Linux"
git clone https://git.99rst.org/PROJECT