#NEWLINE# def test_afp_validation( self ) : #NEWLINE# #INDENT# fet = FunnelEventTracker ( ) #NEWLINE# funnel = 'test_funnel' #NEWLINE# step = 'test_step' #NEWLINE# goal = 'test_goal' #NEWLINE# properties = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( FunnelEventTracker . InvalidFunnelProperties , fet . _add_funnel_properties , properties , funnel , step , goal ) #NEWLINE# properties = { #NEWLINE# #INDENT# 'distinct_id' : 'test_distinct_id' , #NEWLINE# #UNINDENT# } #NEWLINE# fet . _add_funnel_properties ( properties , funnel , step , goal ) #NEWLINE# properties = { #NEWLINE# #INDENT# 'ip' : 'some_ip' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( FunnelEventTracker . InvalidFunnelProperties , fet . _add_funnel_properties , properties , funnel , step , goal ) #NEWLINE# properties = { #NEWLINE# #INDENT# 'distinct_id' : 'test_distinct_id' , #NEWLINE# 'ip' : 'some_ip' , #NEWLINE# #UNINDENT# } #NEWLINE# fet . _add_funnel_properties ( properties , goal , step , goal )