'Navigate to the home page and check the Sign Up button is hidden when ALLOW_PUBLIC_ACCOUNT_CREATION flag
is turned off'

@mock.patch.dict(settings.FEATURES, {'ALLOW_PUBLIC_ACCOUNT_CREATION': False})
def test_signup_button_index_page(self):

    response = self.client.get(reverse('homepage'))
    self.assertNotIn('<a    class="action    action-signup"    href="/signup">Sign    Up</a>', response.content)
