Example #1
0
 def preprint_three(self, user, project_three, provider_three, subject_one, subject_two):
     preprint_three = PreprintFactory(creator=user, project=project_three, filename='darn_reason.txt', provider=provider_three, subjects=[[subject_one._id], [subject_two._id]])
     preprint_three.date_created = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.date_published = '2013-12-11 10:09:08.070605+00:00'
     preprint_three.is_published = False
     preprint_three.save()
     return preprint_three
Example #2
0
 def preprint_two(self, user, project_two, provider_two, subject_two):
     preprint_two = PreprintFactory(creator=user,
                                    project=project_two,
                                    filename='howto_reason.txt',
                                    provider=provider_two,
                                    subjects=[[subject_two._id]])
     preprint_two.date_created = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.date_published = '2013-12-11 10:09:08.070605+00:00'
     preprint_two.save()
     return preprint_two