Example #1
0
 def test_is_protected_is_notimplementederror(self):
     aa = _AbstractAuthorizer({})
     with pytest.raises(NotImplementedError):
         aa.is_protected(info={})
Example #2
0
 def test_get_services_info_is_notimplementederror(self):
     aa = _AbstractAuthorizer({})
     with pytest.raises(NotImplementedError):
         aa.get_services_info(info={})
Example #3
0
 def test_strip_empty_fields(self):
     aa = _AbstractAuthorizer({})
     d = {"a": "", "b": 0, "c": False}
     aa._strip_empty_fields(d)
     self.assertEqual(d, {})