'Verifies that a sort direction list is applied correctly.'

def test_process_sort_params_unequal_length(self):

    (sort_keys, sort_dirs) = sqlalchemy_api.process_sort_params(['id', 'key2', 'key3'], ['desc'])
    self.assertEqual(['id', 'key2', 'key3', 'created_at'], sort_keys)
    self.assertEqual(['desc', 'desc', 'desc', 'desc'], sort_dirs)
    (sort_keys, sort_dirs) = sqlalchemy_api.process_sort_params(['id', 'key2', 'key3'], ['desc', 'asc'])
    self.assertEqual(['id', 'key2', 'key3', 'created_at'], sort_keys)
    self.assertEqual(['desc', 'asc', 'desc', 'desc'], sort_dirs)
    (sort_keys, sort_dirs) = sqlalchemy_api.process_sort_params(['id', 'key2', 'key3'], ['desc', 'asc', 'asc'])
    self.assertEqual(['id', 'key2', 'key3', 'created_at'], sort_keys)
    self.assertEqual(['desc', 'asc', 'asc', 'desc'], sort_dirs)
