diff options
Diffstat (limited to 'lib/fixtures/tests/_fixtures/test_popen.py')
-rw-r--r-- | lib/fixtures/tests/_fixtures/test_popen.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fixtures/tests/_fixtures/test_popen.py b/lib/fixtures/tests/_fixtures/test_popen.py index dc9374c..8eb0174 100644 --- a/lib/fixtures/tests/_fixtures/test_popen.py +++ b/lib/fixtures/tests/_fixtures/test_popen.py @@ -72,6 +72,11 @@ class TestFakePopen(testtools.TestCase, TestWithFixtures): self.assertEqual(1, proc.wait()) self.assertEqual(1, proc.returncode) + def test_with_popen_custom(self): + fixture = self.useFixture(FakePopen()) + with subprocess.Popen(['ls -lh']) as proc: + self.assertEqual(None, proc.returncode) + class TestFakeProcess(testtools.TestCase): |