def setUp(self): SetGlobalVariables() self.mock_service = MagicMock() self.mock_method_name = 'mock_method' self.mock_method = getattr(self.mock_service, self.mock_method_name) self.simple_3_page_response = [ { 'items': [{ 'position': 'page1,item1' }, { 'position': 'page1,item2' }, { 'position': 'page1,item3' }], 'nextPageToken': 'page2' }, { 'items': [{ 'position': 'page2,item1' }, { 'position': 'page2,item2' }, { 'position': 'page2,item3' }], 'nextPageToken': 'page3' }, { 'items': [{ 'position': 'page3,item1' }, { 'position': 'page3,item2' }, { 'position': 'page3,item3' }], }, ] self.empty_items_response = {'items': []} super(GapiTest, self).setUp()
def setUp(self): SetGlobalVariables() super(CreateHttpTest, self).setUp()
def setUp(self): SetGlobalVariables() super().setUp()
def setUp(self): SetGlobalVariables() self.mock_service = MagicMock() self.mock_method_name = 'mock_method' self.mock_method = getattr(self.mock_service, self.mock_method_name) super(CallTest, self).setUp()