'Verify that logistration page displays success/error/info messages
about account activation.'

def test_account_activation_notification_on_logistration(self):

    login_page_url = '{login_url}?next={redirect_url}'.format(login_url=reverse('signin_user'), redirect_url=reverse('dashboard'))
    response = self.client.get(reverse('activate', args=[self.registration.activation_key]), follow=True)
    self.assertRedirects(response, login_page_url)
    self.assertContains(response, 'Success!    You    have    activated    your    account.')
    response = self.client.get(reverse('activate', args=[self.registration.activation_key]), follow=True)
    self.assertRedirects(response, login_page_url)
    self.assertContains(response, 'This    account    has    already    been    activated.')
    response = self.client.get(reverse('activate', args=[uuid4().hex]), follow=True)
    self.assertRedirects(response, login_page_url)
    self.assertContains(response, 'Your    account    could    not    be    activated')
