'Verifies that an anonymous client cannot access the team
dashboard, and is redirected to the login page.'

def test_anonymous(self):

    anonymous_client = APIClient()
    response = anonymous_client.get(self.teams_url)
    redirect_url = '{0}?next={1}'.format(settings.LOGIN_URL, self.teams_url)
    self.assertRedirects(response, redirect_url)
