Пример #1
0
 def test_delivery_option_token(self):
     message = FCMRequest(MockNotification(), condition='ghi')
     delivery_option = message._delivery_option()
     self.assertEqual(delivery_option[0], 'condition')
     self.assertEqual(delivery_option[1], 'ghi')
Пример #2
0
 def test_delivery_option_token(self):
     message = FCMRequest(MockNotification(), topic='def')
     delivery_option = message._delivery_option()
     self.assertEqual(delivery_option[0], 'topic')
     self.assertEqual(delivery_option[1], 'def')