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!')
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))
def setUp(self): ids = ID.mint(requester_name='Gelman', minter_name='gwark', quantity=1) self.one_id = ids[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))