def test_that_general_feedback_thread_reply_info_objects_are_created(self): obj = email_domain.FeedbackThreadReplyInfo('user1.exploration.exp1.1', 'reply_to_id1') self.assertEqual(obj.id, 'user1.exploration.exp1.1') self.assertEqual(obj.reply_to_id, 'reply_to_id1') self.assertEqual(obj.user_id, 'user1') self.assertEqual(obj.entity_type, 'exploration') self.assertEqual(obj.entity_id, 'exp1') self.assertEqual(obj.thread_id, 'exploration.exp1.1')
def get_feedback_thread_reply_info_from_model(model): """Converts GeneralFeedbackEmailReplyToIdModel to a FeedbackThreadReplyInfo. Args: model: GeneralFeedbackEmailReplyToIdModel. The model to be converted. Returns: FeedbackThreadReplyInfo. The resulting domain object. """ return email_domain.FeedbackThreadReplyInfo(model.id, model.reply_to_id)