Instead of returning a string, you need to return a file-like object; usually a StringIO thing. At least something that implements readlines() in your case.
--
You received this message because you are subscribed to the Google Groups "mockito-python" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mockito-python/-/L5V8Q4ol048J.
To post to this group, send email to mockito...@googlegroups.com.
To unsubscribe from this group, send email to mockito-pytho...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mockito-python?hl=en.
--
You received this message because you are subscribed to the Google Groups "mockito-python" group.
To view this discussion on the web visit https://groups.google.com/d/msg/mockito-python/-/P08ixJ4g0e0J.