def test_unknown(): p = MultiModeItem('asdf') with pytest.raises(KeyError): p.get_mode('asdf') p.add_mode(1, BaseMode('mode')) with pytest.raises(KeyError): p.get_mode('asdf')
def test_unknown(parent_rule: DummyRule): p = MultiModeItem('asdf') with pytest.raises(KeyError): p.get_mode('asdf') p.add_mode(1, BaseMode('mode')) with pytest.raises(KeyError): p.get_mode('asdf')