'Verifies that the default key and dir can be overridden.'

def test_process_sort_params_override_default_key_and_dir(self):

    (sort_keys, sort_dirs) = sqlalchemy_api.process_sort_params([], [], default_keys=['key1', 'key2', 'key3'], default_dir='dir1')
    self.assertEqual(['key1', 'key2', 'key3'], sort_keys)
    self.assertEqual(['dir1', 'dir1', 'dir1'], sort_dirs)
    (sort_keys, sort_dirs) = sqlalchemy_api.process_sort_params([], [], default_keys=[], default_dir='dir1')
    self.assertEqual([], sort_keys)
    self.assertEqual([], sort_dirs)
