def __eq__(self, other):
if self.sort().templates != other.sort().templates:<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Test for equality. Rich comparison operator '=='

.. rubric:: Example

>>> tribe_a = Tribe(templates=[Template(name='a')])
>>> tribe_b = Tribe(templates=[Template(name='b')])
>>> tribe_a == tribe_b
False
>>> tribe_a == tribe_a
True