@mock_http_response(responses.GET, ('/sapi/v1/margin/asset\\?' + urlencode(params)), mock_item, 200)
def test_margin_asset():
    'Tests the API endpoint to margin asset'
    client = Client(key, secret)
    response = client.margin_asset(**params)
    response.should.equal(mock_item)
Tests the API endpoint to margin asset
@mock_http_response(responses.GET, ('/sapi/v1/margin/asset\\?' + urlencode(params)), mock_item, 200)
def test_margin_asset():
    
    client = Client(key, secret)
    response = client.margin_asset(**params)
    response.should.equal(mock_item)