Example #1
0
def test__pop_single_value_1():
    attributes = {'42': ['answer'], 'foo': ['bar']}
    answer = GO._pop_single_value('42', attributes)
    assert answer == 'answer'
    assert attributes == {'foo': ['bar']}
Example #2
0
def test__pop_single_value_4():
    with pytest.raises(ValueError):
        GO._pop_single_value('42', {'42': []})
Example #3
0
def test__pop_single_value_5():
    with pytest.raises(TypeError):
        GO._pop_single_value('42', None)
Example #4
0
def test__pop_single_value_2():
    with pytest.raises(KeyError):
        GO._pop_single_value('42', {})