'Activation of an account functions properly.'

def test_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.get(reverse('registration_activate', args=(), kwargs={'activation_key': profile.activation_key}))
    self.assertRedirects(resp, reverse('registration_activation_complete'))
