Ejemplo n.º 1
0
 def setUp(self):
     ids = ID.mint(requester_name='Gelman', minter_name='gwark', quantity=1)
     self.one_id = ids[0]
     bound_id = ID.bind(identifier=self.one_id, object_type='i',
                        object_url='digital.library.gwu.edu/item/'+self.one_id,
                        description='Our first object!')
Ejemplo n.º 2
0
 def test_mint_many(self):
     ids = ID.mint(requester_name=self.requester.name, minter_name=self.minter.name, quantity=12)
     for id in ids:
         self.assertTrue(self.regex.match(id))
Ejemplo n.º 3
0
 def setUp(self):
     ids = ID.mint(requester_name='Gelman', minter_name='gwark', quantity=1)
     self.one_id = ids[0]        
Ejemplo n.º 4
0
 def test_mint_one(self):
     ids = ID.mint(requester_name=self.requester.name, minter_name=self.minter.name, quantity=1)
     self.one_id = ids[0]
     self.assertTrue(self.regex.match(self.one_id))