'Test that maintenance app requires user login.'

@ddt.data(MAINTENANCE_URLS)
@ddt.unpack
def test_require_login(self, url):

    self.client.logout()
    response = self.client.get(url)
    redirect_url = '{login_url}?next={original_url}'.format(login_url=reverse('login'), original_url=url)
    self.assertRedirects(response, redirect_url)
