def test_bad_syntax(self): """Test a filter with the wrong syntax""" if sys.hexversion >= 0x2070000: with self.assertRaises(ValueError): f = JQFilter("this is bad")