def given_a_publisher(self): self.publisher = EventPublisher(self._host, self._port, self._username, None)
def given_a_publisher(self): self.publisher = EventPublisher(self._host, self._port)
def given_a_publisher(self): cfg = When_a_message_is_posted.TestConfig('fakehost', '42') self.publisher = EventPublisher(cfg.host, cfg.port)