예제 #1
0
def test_Vertex_set_data_2():
    vertex = Vertex(1)
    vertex.set_data(0)
    assert vertex.get_data() == 0
예제 #2
0
def test_Vertex_get_data_2():
    vertex = Vertex(3)
    assert vertex.get_data() == 3
예제 #3
0
def test_Vertex_set_data_1():
    vertex = Vertex(1)
    vertex.set_data(2)
    assert vertex.get_data() == 2
예제 #4
0
def test_Vertex_get_data_1():
    vertex = Vertex(1)
    assert vertex.get_data() == 1