[Checkins] SVN: zope.schema/branches/tseaver-test_cleanup/src/zope/schema/tests/test__field.py Coverage for z.s._f.Bytes.

Tres Seaver cvs-admin at zope.org
Mon Apr 23 21:59:21 UTC 2012


Log message for revision 125254:
  Coverage for z.s._f.Bytes.

Changed:
  A   zope.schema/branches/tseaver-test_cleanup/src/zope/schema/tests/test__field.py

-=-
Added: zope.schema/branches/tseaver-test_cleanup/src/zope/schema/tests/test__field.py
===================================================================
--- zope.schema/branches/tseaver-test_cleanup/src/zope/schema/tests/test__field.py	                        (rev 0)
+++ zope.schema/branches/tseaver-test_cleanup/src/zope/schema/tests/test__field.py	2012-04-23 21:59:18 UTC (rev 125254)
@@ -0,0 +1,31 @@
+##############################################################################
+#
+# Copyright (c) 2012 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+import unittest
+
+
+class BytesTests(unittest.TestCase):
+
+    def _getTargetClass(self):
+        from zope.schema._field import Bytes
+        return Bytes
+
+    def _makeOne(self, *args, **kw):
+        return self._getTargetClass()(*args, **kw)
+
+
+def test_suite():
+    return unittest.TestSuite((
+        unittest.makeSuite(BytesTests),
+    ))
+



More information about the checkins mailing list