We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cee538 commit a27909fCopy full SHA for a27909f
testinfra/modules/file.py
@@ -142,16 +142,16 @@ def content(self):
142
"""Return file content as bytes
143
144
>>> File("/tmp/foo").content
145
- b'bar'
+ b'caf\\xc3\\xa9'
146
"""
147
return self._get_content(False)
148
149
@property
150
def content_string(self):
151
"""Return file content as string
152
153
- >>> File("/tmp/foo").content
154
- 'bar'
+ >>> File("/tmp/foo").content_string
+ 'café'
155
156
return self._get_content(True)
157
0 commit comments