Beispiel #1
0
 def test_jobposting_unicode(self):
     '''This test creates a new :class:`~personnel.models.JobPosting` object, then tests for the unicode representation of it.'''
     test_jobposting = JobPosting(title = 'Postdoctoral Researcher',
                           description = 'Some description',
                           link = 'http:/jobs.com/awesomejob',
                           active=True)
     test_jobposting.save()
     self.assertEqual(test_jobposting.__unicode__(), 'Postdoctoral Researcher Job Posting (%s)' %(datetime.date.today()) )