예제 #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