I am creating tests for my django app. Here is my test and I am getting an error. Here is my test code. UserProfile is my model name and profile is my view corresponding to that.
http://tny.cz/82ce97ef This is the error I am getting ERROR: test_profile (Automation.tcc.tests.UserProfile) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/harjot/Automation/../Automation/tcc/tests.py", line 15, in test_profile self.assertEqual(self.first_name, "Harjot") AttributeError: 'UserProfile' object has no attribute 'first_name' Help me please. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily Dairy: http://harjotmann.wordpress.com/daily-diary/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAB0GQhCWHBLq97OCDY9FrDfR6zRD08_1-zcr6bqN5EP01OGYcQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.