'Resend activation functions properly.'

def test_resend_activation(self):

    resp = self.client.post(reverse('registration_register'), data={'username': 'bob', 'email': 'bob@example.com', 'password1': 'secret', 'password2': 'secret'})
    profile = self.registration_profile.objects.get(user__username='bob')
    resp = self.client.post(reverse('registration_resend_activation'), data={'email': profile.user.email})
    self.assertTemplateUsed(resp, 'registration/resend_activation_complete.html')
    self.assertEqual(resp.context['email'], profile.user.email)
