Beispiel #1
0
def test_repr():
    """Test printing the node."""

    u = Node('u')

    assert u.__repr__() == 'Node u'

    v = Node()

    assert v.__repr__().replace('>', '').split(' ')[-1] == v.uid
Beispiel #2
0
def test_repr():
    """Test printing the node."""

    u = Node('u')

    assert u.__repr__() == 'Node u'