def test_send(self):
     request = SubscriptionStatusRequest(token=self.token)
     response = request.send('abcd123')
     self.assertEqual(response.subscriptions, ['broadcasts'])
     self.assertIsNone(response.error)
 def test_send_api_key_empty(self):
     request = SubscriptionStatusRequest(token=self.token)
     with self.assertRaises(ValueError):
         response = request.send('')
 def test_send_api_key_none(self):
     request = SubscriptionStatusRequest(token=self.token)
     with self.assertRaises(TypeError):
         response = request.send(None)
 def test_send(self):
     request = SubscriptionStatusRequest(token=self.token)
     response = request.send('abcd123')
     self.assertEqual(response.subscriptions, ['broadcasts'])
     self.assertIsNone(response.error)
 def test_send_api_key_empty(self):
     request = SubscriptionStatusRequest(token=self.token)
     with self.assertRaises(ValueError):
         response = request.send('')
 def test_send_api_key_none(self):
     request = SubscriptionStatusRequest(token=self.token)
     with self.assertRaises(TypeError):
         response = request.send(None)