def test_show_auto_allocated_topology_dry_run_as_admin(self):
     resource = 'auto_allocated_topology'
     cmd = aat.ShowAutoAllocatedTopology(test_cli20.MyApp(sys.stdout), None)
     args = ['--dry-run', 'some-tenant']
     self._test_show_resource(resource,
                              cmd,
                              "some-tenant",
                              args,
                              fields=('dry-run', ))
 def test_show_auto_allocated_topology_no_arg(self):
     resource = 'auto_allocated_topology'
     cmd = aat.ShowAutoAllocatedTopology(test_cli20.MyApp(sys.stdout), None)
     args = []
     self._test_show_resource(resource, cmd, "None", args)
 def test_show_auto_allocated_topology_posarg(self):
     resource = 'auto_allocated_topology'
     cmd = aat.ShowAutoAllocatedTopology(test_cli20.MyApp(sys.stdout), None)
     args = ['some-tenant']
     self._test_show_resource(resource, cmd, "some-tenant", args)
 def test_show_auto_allocated_topology_arg(self):
     resource = 'auto_allocated_topology'
     cmd = aat.ShowAutoAllocatedTopology(test_cli20.MyApp(sys.stdout), None)
     args = ['--tenant-id', self.test_id]
     self._test_show_resource(resource, cmd, self.test_id, args)