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