[CalendarServer-changes] [9617] CalendarServer/branches/users/glyph/q

source_changes at macosforge.org source_changes at macosforge.org
Sat Aug 11 01:54:55 PDT 2012


Revision: 9617
          http://trac.macosforge.org/projects/calendarserver/changeset/9617
Author:   glyph at apple.com
Date:     2012-08-11 01:54:55 -0700 (Sat, 11 Aug 2012)
Log Message:
-----------
the repr does too much quoting

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_record.py

Property Changed:
----------------
    CalendarServer/branches/users/glyph/q/

Modified: CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_record.py
===================================================================
--- CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_record.py	2012-08-11 08:54:54 UTC (rev 9616)
+++ CalendarServer/branches/users/glyph/q/twext/enterprise/dal/test/test_record.py	2012-08-11 08:54:55 UTC (rev 9617)
@@ -117,10 +117,8 @@
             rec.beta = 12
         ro = self.assertRaises(ReadOnly, setit)
         self.assertEqual(rec.beta, 7)
-        self.assertContains(repr(ro),
-                            "SQL-backed attribute 'TestRecord.beta' is "
-                            "read-only. use '.update(...)' to modify "
-                            "attributes.")
+        self.assertIn("SQL-backed attribute 'TestRecord.beta' is read-only. "
+                      "Use '.update(...)' to modify attributes.", str(ro))
 
 
     @inlineCallbacks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120811/8ad4b162/attachment-0001.html>


More information about the calendarserver-changes mailing list