in source/idea/idea-data-model/src/ideadatamodel/projects/projects_model.py [0:0]
def __eq__(self, other):
eq = True
eq = eq and self.name == other.name
eq = eq and self.title == other.title
eq = eq and self.description == other.description
eq = eq and self.enable_budgets == other.enable_budgets
eq = eq and self.budget == other.budget
eq = eq and self.allowed_sessions_per_user == other.allowed_sessions_per_user
self_tags = self.tags if self.tags else []
other_tags = other.tags if other.tags else []
eq = eq and len(self_tags) == len(other_tags)
eq = eq and all(tag in self_tags for tag in other_tags)
self_policy_arns = self.policy_arns if self.policy_arns else []
other_policy_arns = other.policy_arns if other.policy_arns else []
eq = eq and len(self_policy_arns) == len(other_policy_arns)
eq = eq and all(policy_arn in self_policy_arns for policy_arn in other_policy_arns)
self_security_groups = self.security_groups if self.security_groups else []
other_security_groups = other.security_groups if other.security_groups else []
eq = eq and len(self_security_groups) == len(other_security_groups)
eq = eq and all(security_group in self_security_groups for security_group in other_security_groups)
eq = eq and self.scripts == other.scripts
return eq