def testCommentInlining(self):
    """Test inlining of comments in notifications."""
    # Create comment that shouldn't be in-lined.
    message = 'a' * NotificationManager.MAX_INLINE_COMMENT_LEN
    self._tester.PostComment(self._cookie, self._user.private_vp_id, message=message)

    # Create comment with long message that shouldn't be in-lined.
    self._tester.PostComment(self._cookie, self._user.private_vp_id, message + 'b')

    response_dict = self._tester.QueryNotifications(self._cookie, limit=2, scan_forward=False)
    self.assertTrue(response_dict['notifications'][0]['inline'] not in 'comment')
    self.assertTrue('invalidate' in response_dict['notifications'][0])
    self.assertTrue('comment' in response_dict['notifications'][1]['inline'])
    self.assertTrue('invalidate' not in response_dict['notifications'][1])
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/query_notifications_test.py/QueryNotificationsTestCase.testCommentInlining/swapped operands of `not in`