'Enumeration iteration should match specified sequence.'

def test_iterate_sequence(self):

    for (enumtype, params) in self.valid_values.items():
        values_dict = params['values']
        values_seq = [values_dict[key] for key in params['keys']]
        enum_seq = [val for val in enumtype]
        self.failUnlessEqual(values_seq, enum_seq)
        self.failIfEqual(values_seq.reverse(), enum_seq)
