def test_id_named(self):
        c1 = self.make_container()
        d1 = IdNamedDocument(title=u"Hello", content=u"World", container=c1)
        self.session.add(d1)
        self.session.commit()
        self.assertEqual(d1.url_name, u'1-hello')

        d2 = IdNamedDocument(title=u"Hello", content=u"Again", container=c1)
        self.session.add(d2)
        self.session.commit()
        self.assertEqual(d2.url_name, u'2-hello')

        c2 = self.make_container()
        d3 = IdNamedDocument(title=u"Hello", content=u"Once More", container=c2)
        self.session.add(d3)
        self.session.commit()
        self.assertEqual(d3.url_name, u'3-hello')
Parse result of L{pyhsm.defines.YSM_TEMP_KEY_LOAD} command.
dataset/ETHPy150Open hasgeek/coaster/tests/test_models.py/TestCoasterModels.test_id_named--crossover with--dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/basic_cmd.py/YHSM_Cmd_Temp_Key_Load.parse_result