def METHOD_NAME(self):
    self.plan = physical_factory.PlanFactory()
    self.environment = self.plan.environments.all()[0]
    self.databaseinfra = physical_factory.DatabaseInfraFactory(
        plan=self.plan, environment=self.environment, capacity=10)
    self.instance = physical_factory.InstanceFactory(
        address="127.0.0.1", port=27017, databaseinfra=self.databaseinfra)
    self.project = factory.ProjectFactory()
    self.role = Role.objects.get_or_create(name="fake_role")[0]
    self.organization = Organization.objects.get_or_create(name='fake_organization')[0]
    self.team = Team.objects.get_or_create(
        name="fake_team", role=self.role, database_alocation_limit=0,
        organization=self.organization)[0]
    self.user = User.objects.create_superuser(
        self.USERNAME, email="%s@admin.com" % self.USERNAME, password=self.PASSWORD)
    self.team.users.add(self.user)
    self.client.login(username=self.USERNAME, password=self.PASSWORD)
    self.description = "My database"