[CalendarServer-changes] [5065] CalendarServer/trunk/calendarserver/tools/test/test_gateway.py
source_changes at macosforge.org
source_changes at macosforge.org
Mon Feb 8 17:01:19 PST 2010
Revision: 5065
http://trac.macosforge.org/projects/calendarserver/changeset/5065
Author: wsanchez at apple.com
Date: 2010-02-08 17:01:19 -0800 (Mon, 08 Feb 2010)
Log Message:
-----------
pyflakes
Modified Paths:
--------------
CalendarServer/trunk/calendarserver/tools/test/test_gateway.py
Modified: CalendarServer/trunk/calendarserver/tools/test/test_gateway.py
===================================================================
--- CalendarServer/trunk/calendarserver/tools/test/test_gateway.py 2010-02-09 01:00:57 UTC (rev 5064)
+++ CalendarServer/trunk/calendarserver/tools/test/test_gateway.py 2010-02-09 01:01:19 UTC (rev 5065)
@@ -18,6 +18,7 @@
import plistlib
import xml
+from twisted.python.filepath import FilePath
from twisted.internet import reactor
from twisted.internet.defer import inlineCallbacks, Deferred, returnValue
from twisted.internet.error import ProcessDone
@@ -26,9 +27,8 @@
from twistedcaldav.config import config
from twistedcaldav.test.util import TestCase
from calendarserver.tools.util import getDirectory
-from twisted.python.filepath import FilePath
-from twistedcaldav.directory.directory import DirectoryError
+
class ErrorOutput(Exception):
"""
The process produced some error output and exited with a non-zero exit
@@ -217,15 +217,11 @@
@inlineCallbacks
def test_addWriteProxy(self):
- directory = getDirectory()
-
results = yield self.runCommand(command_addWriteProxy)
self.assertEquals(len(results['result']['Proxies']), 1)
@inlineCallbacks
def test_removeWriteProxy(self):
- directory = getDirectory()
-
results = yield self.runCommand(command_addWriteProxy)
results = yield self.runCommand(command_removeWriteProxy)
self.assertEquals(len(results['result']['Proxies']), 0)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100208/9cb09345/attachment-0001.html>
More information about the calendarserver-changes
mailing list