Ejemplo n.º 1
0
    def setUp(self):
        super(TestDomainCreate, self).setUp()

        self.domain = identity_fakes.FakeDomain.create_one_domain()
        self.domains_mock.create.return_value = self.domain
        self.datalist = (self.domain.description, True, self.domain.id,
                         self.domain.name, self.domain.tags)

        # Get the command object to test
        self.cmd = domain.CreateDomain(self.app, None)
    def setUp(self):
        super(TestDomainCreate, self).setUp()

        self.domains_mock.create.return_value = fakes.FakeResource(
            None,
            copy.deepcopy(identity_fakes.DOMAIN),
            loaded=True,
        )

        # Get the command object to test
        self.cmd = domain.CreateDomain(self.app, None)