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