예제 #1
0
def test_size_2():
    g = Graph()
    g.add_node(235235)
    g.add_node(3232)
    g.add_node(222)
    actual = g.size()
    expected = 3
    assert actual == expected
예제 #2
0
def test_size_1():
    g = Graph()
    g.add_node(1)
    actual = g.size()
    expected = 1
    assert actual == expected
예제 #3
0
def test_size_none():
    g = Graph()
    actual = g.size()
    expected = None
    assert actual == expected