def test_host_init(self): betfair_stream = BetfairStream( self.unique_id, self.mock_listener, self.app_key, self.session_token, self.timeout, self.buffer_size, "integration", ) assert betfair_stream.host == "stream-api-integration.betfair.com"
def setUp(self): self.mock_listener = mock.Mock() self.mock_listener.on_data.return_value = False self.unique_id = 1 self.app_key = 'app_key' self.session_token = 'session_token' self.timeout = 6 self.buffer_size = 1024 self.description = 'test_stream' self.betfair_stream = BetfairStream(self.unique_id, self.mock_listener, self.app_key, self.session_token, self.timeout, self.buffer_size, self.description, None)
def setUp(self): self.mock_listener = mock.Mock() self.mock_listener.on_data.return_value = False self.unique_id = 1 self.app_key = "app_key" self.session_token = "session_token" self.timeout = 6 self.buffer_size = 1024 self.betfair_stream = BetfairStream( self.unique_id, self.mock_listener, self.app_key, self.session_token, self.timeout, self.buffer_size, None, )