diff src/tmp/wokkel/mam.py @ 1424:2d8fccec84e8

core (tests): test fixes
author Goffi <goffi@goffi.org>
date Thu, 23 Apr 2015 14:19:43 +0200
parents 882e5fabf68c
children f525c272fd6d
line wrap: on
line diff
--- a/src/tmp/wokkel/mam.py	Thu Apr 23 13:35:21 2015 +0200
+++ b/src/tmp/wokkel/mam.py	Thu Apr 23 14:19:43 2015 +0200
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 # -*- test-case-name: wokkel.test.test_mam -*-
 #
 # SàT Wokkel extension for Message Archive Management (XEP-0313)
@@ -157,8 +158,9 @@
     @type never: C{list}
     """
 
-    def __init__(self, default, always=None, never=None):
-        assert default in ('always', 'never', 'roster')
+    def __init__(self, default=None, always=None, never=None):
+        if default is not None:
+            assert default in ('always', 'never', 'roster')
         self.default = default
         if always is not None:
             assert isinstance(always, list)