'Verify that old account activation message is displayed when
DISPLAY_ACCOUNT_ACTIVATION_MESSAGE_ON_SIDEBAR is disabled.'

@override_settings(FEATURES=dict(settings.FEATURES, DISPLAY_ACCOUNT_ACTIVATION_MESSAGE_ON_SIDEBAR=False))
def test_account_activation_message_disabled(self):

    self.login()
    expected_message = render_to_string('registration/activate_account_notice.html', {'email': self.user.email})
    response = self.client.get(reverse('dashboard'))
    self.assertContains(response, expected_message, html=True)
    self.user.is_active = True
    self.user.save()
    self.login()
    expected_message = render_to_string('registration/activate_account_notice.html', {'email': self.user.email})
    response = self.client.get(reverse('dashboard'))
    self.assertNotContains(response, expected_message, html=True)
