'InvalidSortKey raised if an invalid key is given.'

def test_instance_get_all_by_filters_sort_key_invalid(self):

    for keys in [['foo'], ['uuid', 'foo']]:
        self.assertRaises(exception.InvalidSortKey, db.instance_get_all_by_filters_sort, self.context, filters={}, sort_keys=keys)
