Beispiel #1
0
def test_calculate_fee_larger():
    mock_order_size = 1000
    mock_comission = 0.1

    fee = calculate_fee(mock_order_size, mock_comission)

    assert fee == 1
Beispiel #2
0
def test_calculate_fee_no_comission():
    mock_price = 100
    mock_comission = 0.00

    fee = calculate_fee(mock_price, mock_comission)

    assert fee == 0.0
Beispiel #3
0
def test_calculate_fee_again():
    mock_price = 200
    mock_comission = 0.1

    fee = calculate_fee(mock_price, mock_comission)

    assert fee == 0.2