def test_disadvantage_function_with_no_iterable():
    operator = Disadvantage()
    with pytest.raises(TypeError):
        operator.function(None)
def test_disadvantage_function_with_no_iterable():
    operator = Disadvantage()
    with pytest.raises(TypeError):
        operator.function(None)
def test_disadvantage_function_when_choosing_from_empty_array():
    operator = Disadvantage()
    with pytest.raises(IndexError):
        operator.function([])
def test_disadvantage_function_when_choosing_from_empty_array():
    operator = Disadvantage()
    with pytest.raises(IndexError):
        operator.function([])