def test_key_does_not_exist(self): trie = Trie() with pytest.raises(KeyNotFound): trie.values('foobar')
def test_key_exists(self): trie = Trie() trie.add('foobar', 1) trie.add('foobar', 2) assert trie.values('foobar') == [1, 2]