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()
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")
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()
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()
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')
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()