Updated test
authorMax G <redacted>
Fri, 10 Jul 2020 20:43:09 +0000 (23:43 +0300)
committerMax G <redacted>
Fri, 10 Jul 2020 20:43:09 +0000 (23:43 +0300)
testUpdateHostsFile.py

index 62616dbc9506d0f75c93c74370b64081868bd157..8a3b4e49dcd6dcd1106ae8d7c2d1b0198f21afe6 100644 (file)
@@ -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