#NEWLINE# @ patch . object ( FakeBackend , 'get_experiment' ) #NEWLINE# @ patch . object ( FakeBackend , 'mark_human' ) #NEWLINE# @ patch . object ( Cleaver , 'identity' , 'ABC123' ) #NEWLINE# @ patch . object ( Cleaver , 'human' , False ) #NEWLINE# def test_default_human_verification( self , mark_human , get_experiment ) : #NEWLINE# #INDENT# backend = FakeBackend ( ) #NEWLINE# get_experiment . return_value = Experiment ( backend = backend , name = 'show_promo' , started_on = datetime . utcnow ( ) , variants = [ 'True' , 'False' ] ) #NEWLINE# cleaver = Cleaver ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , FakeIdentityProvider ( ) , get_experiment ) #NEWLINE# assert ( cleaver . split ( 'show_promo' ) in ( True , False ) ) #NEWLINE# mark_human . assert_called_with ( 'ABC123' )