enable mock_open to work on py3.3/3.4

This commit is contained in:
Tom Viner 2016-11-27 13:42:26 +00:00
parent bec94c5554
commit 7b6346daac

View File

@ -22,7 +22,8 @@ from six.moves import mock
@mock.patch(
'gabbi.case.open',
new_callable=mock.mock_open,
read_data='dummy content'
read_data='dummy content',
create=True,
)
class DataFileTest(unittest.TestCase):
"""Reading from local file is only allowed at or below the