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