def __init__(self): self._store = None self._type = None self._proto = None self._idgen = qvarn.ResourceIdGenerator()
def __init__(self): self._idgen = qvarn.ResourceIdGenerator()
def test_returns_new_values_each_time(self): rig = qvarn.ResourceIdGenerator() id_1 = rig.new_id(u'person') id_2 = rig.new_id(u'person') self.assertNotEqual(id_1, id_2)
def test_returns_a_unicode_string(self): rig = qvarn.ResourceIdGenerator() resource_id = rig.new_id(u'person') self.assertEqual(type(resource_id), six.text_type)
def test_returns_a_unicode_string(self): rig = qvarn.ResourceIdGenerator() resource_id = rig.new_id('person') self.assertTrue(isinstance(resource_id, str))
def __init__(self): self._item_type = None self._prototype = None self._subitem_prototypes = qvarn.SubItemPrototypes() self._id_generator = qvarn.ResourceIdGenerator() self._revision_id_type = 'revision id'