Beispiel #1
0
 def __init__(self, content, code):
     self.read = StringIO(text_type(content)).read
     self.code = code
Beispiel #2
0
 def __init__(self, content, code):
     self.read = StringIO(text_type(content)).read
     self.code = code
Beispiel #3
0
 def __init__(self, content, code):
     super(MockResponse, self).__init__(text_type(content))
     self.code = code
Beispiel #4
0
 def __init__(self, content, code):
     super(MockResponse, self).__init__(text_type(content))
     self.code = code