示例#1
0
 def not_the_owner():
     ieserializer = InvitedEmailsSerializer(data={'user_email': email, 'loggedin': False,
                                                  'chatroom': other_chatroom.pk},
                                            context={'request': self.request})
     ieserializer.is_valid(raise_exception=True)
示例#2
0
 def too_many_emails():
     ieserializer = InvitedEmailsSerializer(data={'user_email': '*****@*****.**', 'loggedin': False,
                                                  'chatroom': self.chatroom.id},
                                            context={'request': self.request})
     ieserializer.is_valid(raise_exception=True)