Example #1
0
 def test_create_new_authordetail_all(self):
     '''This test creates a `::class:AuthorDetails` with the required information only.'''
     test_authordetail = AuthorDetails(author=Contact.objects.get(pk=1), 
         order = 1,
         corresponding_author = True,
         equal_contributors = True)
     test_authordetail.save()             
Example #2
0
 def test_authordetail_unicode(self):
     """This tests that the unicode representaton of an authordetail is correct."""
     test_authordetail = AuthorDetails(author=Contact.objects.get(pk=1), order=1)
     test_authordetail.save()
     self.assertEqual(test_authordetail.__unicode__(), "Test User")
Example #3
0
 def test_create_new_authordetail_all(self):
     """This test creates a `::class:AuthorDetails` with the required information only."""
     test_authordetail = AuthorDetails(
         author=Contact.objects.get(pk=1), order=1, corresponding_author=True, equal_contributors=True
     )
     test_authordetail.save()
Example #4
0
 def test_create_new_authordetail_minimum(self):
     """This test creates a `::class:AuthorDetails` with the required information only."""
     test_authordetail = AuthorDetails(author=Contact.objects.get(pk=1), order=1)
     test_authordetail.save()
Example #5
0
 def test_authordetail_unicode(self):
     '''This tests that the unicode representaton of an authordetail is correct.'''
     test_authordetail = AuthorDetails(author=Contact.objects.get(pk=1), 
         order = 1)
     test_authordetail.save() 
     self.assertEqual(test_authordetail.__unicode__(), 'Test User')
Example #6
0
 def test_create_new_authordetail_minimum(self):
     '''This test creates a `::class:AuthorDetails` with the required information only.'''
     test_authordetail = AuthorDetails(author=Contact.objects.get(pk=1), 
         order = 1)
     test_authordetail.save()