'InvalidInput raised if invalid directions are given.'

def test_process_sort_params_invalid_sort_dir(self):

    for dirs in [['foo'], ['asc', 'foo'], ['asc', 'desc', 'foo']]:
        self.assertRaises(exception.InvalidInput, sqlalchemy_api.process_sort_params, ['key'], dirs)
