Skip to content

Commit a27909f

Browse files
committed
doc: Fix doc for File.content_string
Closes #115
1 parent 8cee538 commit a27909f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testinfra/modules/file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,16 @@ def content(self):
142142
"""Return file content as bytes
143143
144144
>>> File("/tmp/foo").content
145-
b'bar'
145+
b'caf\\xc3\\xa9'
146146
"""
147147
return self._get_content(False)
148148

149149
@property
150150
def content_string(self):
151151
"""Return file content as string
152152
153-
>>> File("/tmp/foo").content
154-
'bar'
153+
>>> File("/tmp/foo").content_string
154+
'café'
155155
"""
156156
return self._get_content(True)
157157

0 commit comments

Comments
 (0)