diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-11-25 17:42:25 +0000 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-11-25 17:42:25 +0000 |
| commit | 707367c98f315d86cc325bb0b0155a1da8a4f408 (patch) | |
| tree | e6f6ed7104bac5d085556d3da73b44c9850cad1c /README | |
| parent | 3de22d0d614e31697f861861a93cbe5d14a8b935 (diff) | |
| download | fixtures-git-707367c98f315d86cc325bb0b0155a1da8a4f408.tar.gz | |
PopenFixture => FakePopen
Diffstat (limited to 'README')
| -rw-r--r-- | README | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -282,6 +282,15 @@ gets the output from logged messages, but they don't go to e.g. the console. >>> fixture = fixtures.FakeLogger() +FakePopen ++++++++++ + +Pretend to run an external command rather than needing it to be present to run +tests. + + >>> from testtools.compat import BytesIO + >>> fixture = fixtures.FakePopen(lambda _:{'stdout': BytesIO('foobar')}) + MonkeyPatch +++++++++++ @@ -300,15 +309,6 @@ happens, if it isn't then it is added on setUp and removed on cleanUp. >>> fixture = fixtures.PackagePathEntry('package/name', '/foo/bar') -PopenFixture -++++++++++++ - -Pretend to run an external command rather than needing it to be present to run -tests. - - >>> from testtools.compat import BytesIO - >>> fixture = fixtures.PopenFixture(lambda _:{'stdout': BytesIO('foobar')}) - PythonPackage +++++++++++++ |
