def test_not_found(self): node, before, after = get_node(TestGetNode.DB, 'examples') self.assertEqual(node, 'test') self.assertEqual(before, 'example') self.assertEqual(after, 's')
def test_get_partial(self): node, before, after = get_node(TestGetNode.DB, 'examp') self.assertEqual(node, TestGetNode.DB['trie']['exam']) self.assertEqual(before, 'exam') self.assertEqual(after, 'p')