コード例 #1
0
def test_advantage_function_with_no_iterable():
    operator = Advantage()
    with pytest.raises(TypeError):
        operator.function(None)
コード例 #2
0
def test_advantage_function_with_no_iterable():
    operator = Advantage()
    with pytest.raises(TypeError):
        operator.function(None)
コード例 #3
0
def test_advantage_function_when_choosing_from_empty_array():
    operator = Advantage()
    with pytest.raises(IndexError):
        operator.function([])
コード例 #4
0
def test_advantage_function_when_choosing_from_empty_array():
    operator = Advantage()
    with pytest.raises(IndexError):
        operator.function([])