def test_calculate_fee_larger(): mock_order_size = 1000 mock_comission = 0.1 fee = calculate_fee(mock_order_size, mock_comission) assert fee == 1
def test_calculate_fee_no_comission(): mock_price = 100 mock_comission = 0.00 fee = calculate_fee(mock_price, mock_comission) assert fee == 0.0
def test_calculate_fee_again(): mock_price = 200 mock_comission = 0.1 fee = calculate_fee(mock_price, mock_comission) assert fee == 0.2