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