<s> from nose . tools import assert_equal <EOL> class TestFindLoopStart ( object ) : <EOL> def test_find_loop_start ( self ) : <EOL> print ( '<STR_LIT>' ) <EOL> linked_list = MyLinkedList ( ) <EOL> assert_equal ( linked_list . find_loop_start ( ) , None ) <EOL> print ( '<STR_LIT>' ) <EOL> head = Node ( <NUM_LIT:1> ) <EOL> linked_list = MyLinkedList ( head ) <EOL> assert_equal ( linked_list . find_loop_start ( ) , None ) <EOL> print ( '<STR_LIT>' ) <EOL> linked_list . append ( <NUM_LIT:2> ) <EOL> assert_equal ( linked_list . find_loop_start ( ) , None ) <EOL> print ( '<STR_LIT>' ) <EOL> linked_list . append ( <NUM_LIT:3> ) <EOL> assert_equal ( linked_list . find_loop_start ( ) , None ) <EOL> print ( '<STR_LIT>' ) <EOL> node10 = Node ( <NUM_LIT:10> ) <EOL> node9 = Node ( <NUM_LIT:9> , node10 ) <EOL> node8 = Node ( <NUM_LIT:8> , node9 ) <EOL> node7 = Node ( <NUM_LIT:7> , node8 ) <EOL> node6 = Node ( <NUM_LIT:6> , node7 ) <EOL> node5 = Node ( <NUM_LIT:5> , node6 ) <EOL> node4 = Node ( <NUM_LIT:4> , node5 ) <EOL> node3 = Node ( <NUM_LIT:3> , node4 ) <EOL> node2 = Node ( <NUM_LIT:2> , node3 ) <EOL> node1 = Node ( <NUM_LIT:1> , node2 ) <EOL> node0 = Node ( <NUM_LIT:0> , node1 ) <EOL> node10 . next = node3 <EOL> linked_list = MyLinkedList ( node0 ) <EOL> assert_equal ( linked_list . find_loop_start ( ) , <NUM_LIT:3> ) <EOL> print ( '<STR_LIT>' ) <EOL> def main ( ) : <EOL> test = TestFindLoopStart ( ) <EOL> test . test_find_loop_start ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
