def test_create_or_update(self): first_id = CommentData.create_or_update(self.evaluation_id, 'Comment Data Test Comment').id() second_id = CommentData.create_or_update(self.evaluation_id, 'Comment Data Test Comment Updated').id() self.assertEqual(first_id, second_id) comment_data = CommentData.find_by_id(second_id) self.assertEqual('Comment Data Test Comment Updated', comment_data.value)