#NEWLINE# def test_cannot_be_associated_with_a_user_and_a_session_key_at_the_same_time_to_be_created( self ) : #NEWLINE# #INDENT# poll = TopicPollFactory . create ( topic = self . topic , max_options = 2 ) #NEWLINE# option_1 = TopicPollOptionFactory . create ( poll = poll ) #NEWLINE# TopicPollOptionFactory . create ( poll = poll ) #NEWLINE# with pytest . raises ( ValidationError ) : #NEWLINE# #INDENT# vote = TopicPollVoteFactory . build ( poll_option = self , voter = self . u1 , anonymous_key = 'ertyue' ) #NEWLINE# vote . clean ( )