'Create sample data for these tests.
As well as the usual housekeeping, create a set of domains,
users, roles and projects for the subsequent tests:
- Three domains: A,B & C.  C is disabled.
- DomainA has user1, DomainB has user2 and user3
- DomainA has group1 and group2, DomainB has group3
- User1 has a role on DomainA
Remember that there will also be a fourth domain in existence,
the default domain.'

def load_sample_data(self):

    self._populate_default_domain()
    self.domainA = unit.new_domain_ref()
    self.resource_api.create_domain(self.domainA['id'], self.domainA)
    self.domainB = unit.new_domain_ref()
    self.resource_api.create_domain(self.domainB['id'], self.domainB)
    self.domainC = unit.new_domain_ref()
    self.domainC['enabled'] = False
    self.resource_api.create_domain(self.domainC['id'], self.domainC)
    self.user1 = unit.create_user(self.identity_api, domain_id=self.domainA['id'])
    self.user2 = unit.create_user(self.identity_api, domain_id=self.domainB['id'])
    self.user3 = unit.create_user(self.identity_api, domain_id=self.domainB['id'])
    self.role = unit.new_role_ref()
    self.role_api.create_role(self.role['id'], self.role)
    self.assignment_api.create_grant(self.role['id'], user_id=self.user1['id'], domain_id=self.domainA['id'])
    self.auth = self.build_authentication_request(user_id=self.user1['id'], password=self.user1['password'])
