'Verifies that the default dir is applied to all keys.'

def test_process_sort_params_default_dir(self):

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