コード例 #1
0
def test_fail_buy_stocks_from_invalid_quantity_type():
    with pytest.raises(TypeError):
        GOOGLE.user_buys_stocks(None)
コード例 #2
0
def test_fail_buy_stocks_from_non_int_quantity_type():
    with pytest.raises(TypeError):
        GOOGLE.user_buys_stocks("24.444")
コード例 #3
0
def test_fail_sell_stocks_from_raw_int_quantity_type():
    with pytest.raises(TypeError):
        GOOGLE.user_buys_stocks(25)