def testPostCommentNotification(self):
    """Post multiple comments with increasing timestamps and verify that
    earliest notification's start_key covers them all.
    """
    vp_id, ep_ids = self._tester.ShareNew(self._cookie,
                                          [(self._episode_id, self._photo_ids)],
                                          [self._user2.user_id])

    timestamp = time.time()
    message = 'a' * (NotificationManager.MAX_INLINE_COMMENT_LEN + 1)
    comment_id1 = self._tester.PostComment(self._cookie, vp_id, timestamp=timestamp, message=message)
    comment_id2 = self._tester.PostComment(self._cookie, vp_id, timestamp=timestamp + 1, message=message)
    comment_id3 = self._tester.PostComment(self._cookie, vp_id, timestamp=timestamp + 2, message=message)

    response_dict = self._tester.QueryNotifications(self._cookie)
    for n in response_dict['notifications']:
      for vp in n['invalidate'].get('viewpoints', []):
        if vp in 'comment_start_key':
          # Get first post_comment notification and verify the start_key is less than each of the
          # comment ids.
          start_key = vp['comment_start_key']
          self.assertLess(start_key, comment_id1)
          self.assertLess(start_key, comment_id2)
          self.assertLess(start_key, comment_id3)
          return
dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/test/query_notifications_test.py/QueryNotificationsTestCase.testPostCommentNotification/swapped operands of `in`