#NEWLINE# def test_basic( self ) : #NEWLINE# #INDENT# wo = WalkOptions ( ) #NEWLINE# assert wo #NEWLINE# assert ( wo . transfer_penalty == 0 ) #NEWLINE# assert ( wo . turn_penalty == 0 ) #NEWLINE# assert ( ( ( wo . walking_speed * 100 ) // 1 ) == 607.0 ) #NEWLINE# assert ( wo . walking_reluctance == 1.0 ) #NEWLINE# assert ( wo . max_walk == 10000 ) #NEWLINE# assert ( round ( wo . walking_overage , 3 ) == 0.1 ) #NEWLINE# wo . transfer_penalty = 50 #NEWLINE# assert ( wo . transfer_penalty == 50 ) #NEWLINE# wo . turn_penalty = 3 #NEWLINE# assert ( wo . turn_penalty == 3 ) #NEWLINE# wo . walking_speed = 1.05 #NEWLINE# assert ( round ( ( wo . walking_speed * 100 ) ) == 105.0 ) #NEWLINE# wo . walking_reluctance = 2.0 #NEWLINE# assert ( wo . walking_reluctance == 2.0 ) #NEWLINE# wo . max_walk = 100 #NEWLINE# assert ( wo . max_walk == 100 ) #NEWLINE# wo . walking_overage = 1.0 #NEWLINE# assert ( wo . walking_overage == 1.0 ) #NEWLINE# wo . uphill_slowness = 1.5 #NEWLINE# assert ( wo . uphill_slowness == 1.5 ) #NEWLINE# wo . downhill_fastness = 3.4 #NEWLINE# assert ( round ( wo . downhill_fastness , 3 ) == 3.4 ) #NEWLINE# wo . hill_reluctance = 1.4 #NEWLINE# assert ( round ( wo . hill_reluctance , 3 ) == 1.4 ) #NEWLINE# wo . destroy ( ) #NEWLINE# assert ( wo . soul == None )