'An exception is raised if both types of sorting params are given.'

def test_get_params_mix_sort_and_old_params(self):

    for params in ({'sort': 'k1', 'sort_key': 'k1'}, {'sort': 'k1', 'sort_dir': 'd1'}, {'sort': 'k1', 'sort_key': 'k1', 'sort_dir': 'd2'}):
        self.assertRaises(webob.exc.HTTPBadRequest, common.get_sort_params, params)
