예제 #1
0
 def __init__(self):
     self._store = None
     self._type = None
     self._proto = None
     self._idgen = qvarn.ResourceIdGenerator()
예제 #2
0
 def __init__(self):
     self._idgen = qvarn.ResourceIdGenerator()
예제 #3
0
 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)
예제 #4
0
 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)
예제 #5
0
 def test_returns_a_unicode_string(self):
     rig = qvarn.ResourceIdGenerator()
     resource_id = rig.new_id('person')
     self.assertTrue(isinstance(resource_id, str))
예제 #6
0
 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'