'Test that all maintenance app views are not accessible to non-global-staff user.'

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

    user = UserFactory(username='test', email='test@example.com', password='test')
    login_success = self.client.login(username=user.username, password='test')
    self.assertTrue(login_success)
    response = self.client.get(url)
    self.assertContains(response, u'Must    be    {platform_name}    staff    to    perform    this    action.'.format(platform_name=settings.PLATFORM_NAME), status_code=403)
