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)
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)