[CalendarServer-changes] [8969] CalendarServer/trunk/twext/web2/dav/test/test_stream.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Apr 2 17:54:57 PDT 2012


Revision: 8969
          http://trac.macosforge.org/projects/calendarserver/changeset/8969
Author:   wsanchez at apple.com
Date:     2012-04-02 17:54:56 -0700 (Mon, 02 Apr 2012)
Log Message:
-----------
Obsolete

Removed Paths:
-------------
    CalendarServer/trunk/twext/web2/dav/test/test_stream.py

Deleted: CalendarServer/trunk/twext/web2/dav/test/test_stream.py
===================================================================
--- CalendarServer/trunk/twext/web2/dav/test/test_stream.py	2012-04-03 00:49:37 UTC (rev 8968)
+++ CalendarServer/trunk/twext/web2/dav/test/test_stream.py	2012-04-03 00:54:56 UTC (rev 8969)
@@ -1,46 +0,0 @@
-# Copyright (c) 2009 Twisted Matrix Laboratories.
-# See LICENSE for details.
-
-##
-# Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in all
-# copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-##
-
-from twisted.internet.defer import Deferred
-from twisted.trial.unittest import TestCase
-
-
-class AsynchronousDummyStream(object):
-    """
-    An L{IByteStream} implementation which always returns a L{Deferred} from
-    C{read} and lets an external driver fire them.
-    """
-    def __init__(self):
-        self._readResults = []
-
-
-    def read(self):
-        result = Deferred()
-        self._readResults.append(result)
-        return result
-
-
-    def _write(self, bytes):
-        self._readResults.pop(0).callback(bytes)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20120402/e772cf6c/attachment.html>


More information about the calendarserver-changes mailing list