def build_to_organizations(self):
        # Build a test organization that user 0 is associated with,
        #  and one that user 1 is associated with.
        # If a test only needs one org, it can set self.num_orgs = 1.
        for organization_num in range(2):
            name = "Test Organization %d" % organization_num
            if organization_num < self.num_orgs/2:
                new_organization = Organization.objects.create(name=name, owner=self.test_user_0)
                new_organization.editors.add(self.test_user_0)
            else:
                new_organization = Organization.objects.create(name=name, owner=self.test_user_1)
                new_organization.editors.add(self.test_user_1)
            self.test_organizations.append(new_organization)
Sample a set value.
dataset/ETHPy150Open openlearningtools/opencompetencies/users/tests.py/UserViewTests.build_to_organizations--crossover with--dataset/ETHPy150Open DataDog/datadogpy/datadog/dogstatsd/base.py/DogStatsd.set