def test_repr(self, value): assert repr(Node(value)) == "<Node({0!r})>".format(str(value))
def test_str(self, value): assert str(Node(value)) == str(value)
def test_base_class(self): with pytest.raises(NotImplementedError): Node("cover all the code").serialize()
def test_accepts_value(self, value): assert Node(value).value == value
def test_repr(self, value): assert repr(Node(value)) == f"<Node({str(value)!r})>"