The method was implementated as:
def check_representation(self):
"""
Checks that the internal representation is correct.

:raise: AssertionError if an error is found.
"""
for attribute in (self.max, self.head, self.size):
assert attribute >= 0, "{0} shouldn't be negative. ({1})".format(attribute, str(self))
assert ((self.head + self.size) % self.max == self.tail), str(self)
return

Notes