summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_xmlrpc/test_delegation_plugin.py12
-rw-r--r--tests/test_xmlrpc/test_selfservice_plugin.py12
2 files changed, 14 insertions, 10 deletions
diff --git a/tests/test_xmlrpc/test_delegation_plugin.py b/tests/test_xmlrpc/test_delegation_plugin.py
index ded6d4f0..a4520f43 100644
--- a/tests/test_xmlrpc/test_delegation_plugin.py
+++ b/tests/test_xmlrpc/test_delegation_plugin.py
@@ -69,6 +69,8 @@ class test_delegation(Declarative):
),
+ # Note that we add postalCode but expect postalcode. This tests
+ # the attrs normalizer.
dict(
desc='Create %r' % delegation1,
command=(
@@ -83,7 +85,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=u'Added delegation "%s"' % delegation1,
result=dict(
- attrs=[u'street', u'c', u'l', u'st', u'postalCode'],
+ attrs=[u'street', u'c', u'l', u'st', u'postalcode'],
permissions=[u'write'],
aciname=delegation1,
group=u'editors',
@@ -115,7 +117,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=None,
result={
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'write'],
'aciname': delegation1,
'group': u'editors',
@@ -135,7 +137,7 @@ class test_delegation(Declarative):
summary=u'1 delegation matched',
result=[
{
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'write'],
'aciname': delegation1,
'group': u'editors',
@@ -156,7 +158,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=u'Modified delegation "%s"' % delegation1,
result=dict(
- attrs=[u'street', u'c', u'l', u'st', u'postalCode'],
+ attrs=[u'street', u'c', u'l', u'st', u'postalcode'],
permissions=[u'read'],
aciname=delegation1,
group=u'editors',
@@ -174,7 +176,7 @@ class test_delegation(Declarative):
value=delegation1,
summary=None,
result={
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'read'],
'aciname': delegation1,
'group': u'editors',
diff --git a/tests/test_xmlrpc/test_selfservice_plugin.py b/tests/test_xmlrpc/test_selfservice_plugin.py
index 897bd0da..30b5d764 100644
--- a/tests/test_xmlrpc/test_selfservice_plugin.py
+++ b/tests/test_xmlrpc/test_selfservice_plugin.py
@@ -68,6 +68,8 @@ class test_selfservice(Declarative):
),
+ # Note that we add postalCode but expect postalcode. This tests
+ # the attrs normalizer.
dict(
desc='Create %r' % selfservice1,
command=(
@@ -80,7 +82,7 @@ class test_selfservice(Declarative):
value=selfservice1,
summary=u'Added selfservice "%s"' % selfservice1,
result=dict(
- attrs=[u'street', u'c', u'l', u'st', u'postalCode'],
+ attrs=[u'street', u'c', u'l', u'st', u'postalcode'],
permissions=[u'write'],
selfaci=True,
aciname=selfservice1,
@@ -108,7 +110,7 @@ class test_selfservice(Declarative):
value=selfservice1,
summary=None,
result={
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'write'],
'selfaci': True,
'aciname': selfservice1,
@@ -126,7 +128,7 @@ class test_selfservice(Declarative):
summary=u'1 selfservice matched',
result=[
{
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'write'],
'selfaci': True,
'aciname': selfservice1,
@@ -145,7 +147,7 @@ class test_selfservice(Declarative):
value=selfservice1,
summary=u'Modified selfservice "%s"' % selfservice1,
result=dict(
- attrs=[u'street', u'c', u'l', u'st', u'postalCode'],
+ attrs=[u'street', u'c', u'l', u'st', u'postalcode'],
permissions=[u'read'],
selfaci=True,
aciname=selfservice1,
@@ -161,7 +163,7 @@ class test_selfservice(Declarative):
value=selfservice1,
summary=None,
result={
- 'attrs': [u'street', u'c', u'l', u'st', u'postalCode'],
+ 'attrs': [u'street', u'c', u'l', u'st', u'postalcode'],
'permissions': [u'read'],
'selfaci': True,
'aciname': selfservice1,