def build_rights_object(self):
     """ CONTROLLER.
         Returns basic bell rights object created via bdrxml. """
     obj = rights.make_rights()
     obj.category = "COPYRIGHTED"
     obj = self._add_holder_data(obj)
     obj = self._add_rights_context(obj, "repo_manager")
     obj = self._add_rights_context(obj, "bell_gallery")
     obj = self._add_rights_context(obj, "general_public")
     obj.date = datetime.date.today()
     assert unicode(repr(type(obj))) == "<class 'bdrxml.rights.Rights'>", unicode(repr(type(obj)))
     return obj
Example #2
0
 def setUp(self):
     # basic right
     self.rights = make_rights()
 def setUp(self):
     self.rights = make_rights()