Commit 5e06a910 authored by Tres Seaver's avatar Tres Seaver

Coverage for zodburi.datatypes.

parent 4fb223dd
......@@ -14,7 +14,8 @@ class SuffixMultiplier:
if self._keysz is None:
self._keysz = len(k)
else:
assert self._keysz == len(k)
if self._keysz != len(k):
raise ValueError('suffix length missmatch')
def __call__(self, v):
v = v.lower()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment