def setUp(self):
        super(TestDomainList, self).setUp()

        self.domains_mock.list.return_value = [self.domain]

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

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

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