def test_profile_post_invalid_data(self):
        self.request.method = 'POST'
        self.request.POST = QueryDict(u'birth_date=blah')

        response = views.profile(self.request)

        user = period_models.User.objects.get(pk=self.request.user.pk)
        self.assertEqual(pytz.utc.localize(datetime.datetime(1995, 3, 1)), user.birth_date)
        self.assertContains(response, '<h4>Account Info for %s</h4>' % self.request.user.email)
dataset/ETHPy150Open jessamynsmith/eggtimer-server/periods/tests/test_views.py/TestViews.test_profile_post_invalid_data/original