summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-11-25 17:42:25 +0000
committerJonathan Lange <jml@canonical.com>2011-11-25 17:42:25 +0000
commit707367c98f315d86cc325bb0b0155a1da8a4f408 (patch)
treee6f6ed7104bac5d085556d3da73b44c9850cad1c /README
parent3de22d0d614e31697f861861a93cbe5d14a8b935 (diff)
downloadfixtures-git-707367c98f315d86cc325bb0b0155a1da8a4f408.tar.gz
PopenFixture => FakePopen
Diffstat (limited to 'README')
-rw-r--r--README18
1 files changed, 9 insertions, 9 deletions
diff --git a/README b/README
index 8a88c1e..2c24db4 100644
--- a/README
+++ b/README
@@ -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
+++++++++++++