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