def METHOD_NAME(self):
    a = Date(None)
    a.init(None)
    for d in ["~1855", "~1940s", "~C13", "C18", "1970s", "1914", "1914..1918", "2008-08-08..2008-08-24", "late 1920s", "after 1500", "summer 1998", "480 BC", "2012-10", "2002-11", "2014", "2010.."]:
        assert not a.node(None, {"date":d}), ("date={0}".format(d))
    assert not a.node(None, {"date":"yes", "amenity":"clock"}), ("date=yes")
    for d in ["yes", "XVI", "p", "0000", "9999", "Ca9", "1914..9999", "2014..Ca09"]:
        self.check_err(a.node(None, {"date":d}), ("date={0}".format(d)))
        self.check_err(a.way(None, {"date":d}, None), ("date={0}".format(d)))
        self.check_err(a.relation(None, {"date":d}, None), ("date={0}".format(d)))