def testList(self): instance_list = [self.msgs.Instance()] response = self.msgs.ListInstancesResponse(instances=instance_list) self.client.projects_instances.List.Expect( request=self.msgs.SpannerProjectsInstancesListRequest( parent='projects/' + self.Project(), pageSize=100), response=response) self.assertCountEqual(instances.List(), instance_list)
def Run(self, args): """This is what gets called when the user runs this command. Args: args: an argparse namespace. All the arguments that were provided to this command invocation. Returns: Some value that we want to have printed later. """ return instances.List()