Ejemplo n.º 1
0
def test_advantage_function_with_no_iterable():
    operator = Advantage()
    with pytest.raises(TypeError):
        operator.function(None)
Ejemplo n.º 2
0
def test_advantage_function_with_no_iterable():
    operator = Advantage()
    with pytest.raises(TypeError):
        operator.function(None)
Ejemplo n.º 3
0
def test_advantage_function_when_choosing_from_empty_array():
    operator = Advantage()
    with pytest.raises(IndexError):
        operator.function([])
Ejemplo n.º 4
0
def test_advantage_function_when_choosing_from_empty_array():
    operator = Advantage()
    with pytest.raises(IndexError):
        operator.function([])