Ejemplo n.º 1
0
 def __init__(self, url):
     """
     :param url: The broker url.
     :type url: str
     """
     BaseSender.__init__(self, url)
     self.connection = Connection(url)
Ejemplo n.º 2
0
 def __init__(self, url):
     """
     :param url: The broker url.
     :type url: str
     """
     BaseSender.__init__(self, url)
     self.connection = Connection(url)
Ejemplo n.º 3
0
 def test_abstract(self):
     url = TEST_URL
     sender = BaseSender(url)
     self.assertRaises(NotImplementedError, sender.send, None, None, None)
Ejemplo n.º 4
0
 def test_init(self):
     url = TEST_URL
     sender = BaseSender(url)
     self.assertEqual(sender.url, url)
     self.assertTrue(isinstance(sender, Messenger))