def METHOD_NAME(self):
    a = Capacity(None)
    a.init(None)
    self.check_err(a.node(None, {"capacity": "a"}), {"class": 30912, "subclass": 4})
    self.check_err(
        a.node(None, {"capacity": "-1"}), {"class": 30912, "subclass": 5}
    )
    self.check_err(
        a.node(None, {"capacity": "1", "capacity:disabled": "-1"}),
        {"class": 30912, "subclass": 5},
    )
    self.check_err(
        a.node(None, {"capacity": "1", "capacity:disabled": "a", "amenity": "parking"}),
        {"class": 30912, "subclass": 5},
    )
    self.check_err(
        a.node(None, {"capacity": "1", "capacity:disabled": "2"}),
        {"class": 30913, "subclass": 1},
    )
    assert not a.node(None, {"amenity": "restaurant"})
    assert not a.node(None, {"capacity": "1"})
    assert not a.node(None, {"capacity": "1", "capacity:wheelchair": "1"})
    assert not a.node(None, {"capacity:": "1"})
    assert not a.node(None, {"capacity:": ""})
    assert not a.node(None, {"capacity": ""})
    assert not a.node(None, {"capacity": "1", "capacity:": "a"})
    assert not a.node(None, {"capacity:wheelchair": "1"})
    assert not a.node(None, {"capacity": "123.45 m³", "man_made": "water_tower"})
    assert not a.node(None, {"capacity": "123.45", "amenity": "waste_disposal"})