def test_invalid_url(self): settings.AUTHORIZATION_HOST = 'notalive:8000' self.assertIsNone(get_all_scopes())
def test_valid_url(self): scopes = get_all_scopes() self.assertIsNotNone(scopes) self.assertTrue(len(scopes) > 0)