'If an already active user tries to activate with a valid key,
we take them to login page and show message.'

@mock.patch.object(Site.objects, 'get_current')
def test_active_user_activation(self, get_current):

    get_current.return_value.domain = 'su.mo.com'
    user = RegistrationProfile.objects.create_inactive_user('sumouser1234', 'testpass', 'sumouser@test.com')
    user.is_active = True
    user.save()
    key = RegistrationProfile.objects.all()[0].activation_key
    url = reverse('users.activate', args=[user.id, key])
    response = self.client.get(url, follow=True)
    eq_(200, response.status_code)
    doc = pq(response.content)
    eq_('Your    account    is    already    activated,    log    in    below.', doc('ul.user-messages').text())
