From 021c8f04ba6dd92955fe02b988f29049a3540212 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Fri, 13 Apr 2012 16:59:04 +0100 Subject: Minor update for mock_open docs --- docs/helpers.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/helpers.txt b/docs/helpers.txt index 6bd2950..571b71d 100644 --- a/docs/helpers.txt +++ b/docs/helpers.txt @@ -268,6 +268,7 @@ enough that a helper function is useful. .. doctest:: + >>> from mock import mock_open >>> m = mock_open() >>> with patch('__main__.open', m, create=True): ... with open('foo', 'w') as h: -- cgit v1.2.1