def test_fcycle_check():
    # CREATE CYCLE LIST
    a = Node(1)
    b = Node(2)
    c = Node(3)

    a.nextnode = b
    b.nextnode = c
    c.nextnode = a  # Cycle Here!

    x = Node(1)
    y = Node(2)
    z = Node(3)

    x.nextnode = y
    y.nextnode = z

    stubs = [has_cycle]
    for stub in stubs:
        assert stub(a) == True
        assert stub(x) == False