def test_invalid_date_fromjson(self):
        jdate = "2015-01-invalid"
        try:
            parse(jdate % '{"a": "%s"}', {'a': datetime.date}, False)
            assert False
        except Exception as e:
            assert isinstance(e, InvalidInput)
            assert e.fieldname == 'a'
            assert e.value == jdate
            assert e.msg == "'%s' is not a legal date value" % jdate
dataset/ETHPy150Open openstack/wsme/wsme/tests/test_restjson.py/TestRestJson.test_invalid_date_fromjson/swapped operands of `%`