def test_wrong_type(self): """Test a wrongly-typed filter""" if sys.hexversion >= 0x2070000: with self.assertRaises(ValueError): f = JQFilter(1234)