def testList(self):
     config_list = [self.msgs.InstanceConfig()]
     response = self.msgs.ListInstanceConfigsResponse(
         instanceConfigs=config_list)
     self.client.projects_instanceConfigs.List.Expect(
         request=self.msgs.SpannerProjectsInstanceConfigsListRequest(
             parent='projects/' + self.Project(), pageSize=100),
         response=response)
     self.assertCountEqual(instance_configs.List(), config_list)
示例#2
0
    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 instance_configs.List()