def test_class_order():
 class_names = [table.__name__ for table in tables.mapped_classes]
 def key(name):
  return ((name != 'Language'), name)
 assert (class_names == sorted(class_names, key=key))

def test_class_order ( ) : class_names = [ table . __name__ for table in tables . mapped_classes ] def key ( name ) : return ( ( name != 'Language' ) , name ) assert ( class_names == sorted ( class_names , key = key ) )
the declarative classes should be defined in alphabetical order .