'EnumValue instances should compare as their sequence order.'

def test_compare_sequence(self):

    for (enumtype, params) in self.valid_values.items():
        for (i, left_key) in enumerate(params['keys']):
            for (j, right_key) in enumerate(params['keys']):
                for compare_func in compare_functions:
                    self.failUnlessEqual(compare_func(i, j), compare_func(params['values'][left_key], enum.EnumValue(enumtype, j, right_key)))
