def test_send_with_expiry(self): api = APILatest(token='some-token', transport=DummyReturnTransport()) self.assertDictEqual( api.send_with_expiry('test', 'test', ttl=1), self._param_builder(api=api, title='test', body='test', ttl=1) )