def test_put_request_False(self): responses.add(responses.PUT, 'http://localhost:8085/market/bids', json={'error': { 'message': 'test' }}) self.assertFalse(Market._put_request(10, 'BTC', 10, 'MB', 1000, 'bids'))
def test_put_request(self): responses.add(responses.PUT, 'http://localhost:8085/market/bids', json={'order_number': "1"}) assert(Market._put_request(10, 'BTC', 10, 'MB', 1000, 'bids'))
def test_put_request(self): responses.add(responses.PUT, 'http://localhost:8085/market/bids', json={'created': True}) assert(Market._put_request(10, 'MB', 10, 'BTC', 1000, 'bids'))