예제 #1
0
파일: tests.py 프로젝트: xguse/ExperimentDB
 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()             
예제 #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")
예제 #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()
예제 #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()
예제 #5
0
파일: tests.py 프로젝트: xguse/ExperimentDB
 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')
예제 #6
0
파일: tests.py 프로젝트: xguse/ExperimentDB
 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()