Permalink
Browse files

Add Chris McDonough to AUTHORS. Trim whitespace.

  • Loading branch information...
1 parent cb74318 commit 87db8dfd37183aaac47ab2d2644704dfa050b0b3 @rduplain committed Mar 18, 2012
Showing with 8 additions and 7 deletions.
  1. +1 −0 AUTHORS
  2. +7 −7 tests.py
View
1 AUTHORS
@@ -5,6 +5,7 @@ Development Team
- Ron DuPlain <ron.duplain@gmail.com>
- Michael Merickel <michael@merickel.org>
+- Chris McDonough <chrism@plope.com>
Contributors
View
14 tests.py
@@ -39,26 +39,26 @@ def start_response(status, headers=()):
inst(environ, start_response)
self.assertEqual(app.environs, [environ])
self.assertEqual(environ['start_response_called'], True)
-
+
def test_send_invitations(self):
app = DummyWSGIApp()
inst = self._makeOne(app)
inst.send_invitations(('/__invite__', '/another/__invite__'))
self.assertEqual(len(app.environs), 2)
environ1, environ2 = app.environs
self.assertEqual(environ1['PATH_INFO'], '/__invite__')
- self.assertEqual(environ1[inst.partyline_key].__class__,
+ self.assertEqual(environ1[inst.partyline_key].__class__,
inst.operator_class)
self.assertEqual(environ2['PATH_INFO'], '/another/__invite__')
- self.assertEqual(environ2[inst.partyline_key].__class__,
+ self.assertEqual(environ2[inst.partyline_key].__class__,
inst.operator_class)
def test_connect_to_nonexisting(self):
app = DummyWSGIApp()
inst = self._makeOne(app)
inst.connect('service_name', 'handler')
self.assertEqual(inst.handlers['service_name'], ['handler'])
-
+
def test_connect_to_existing(self):
app = DummyWSGIApp()
inst = self._makeOne(app)
@@ -126,7 +126,7 @@ def __init__(self, connect_response=None, ask_response=None):
self.asked = []
self.ask_response = ask_response
self.connect_response = connect_response
-
+
def connect(self, name, handler):
self.connections.append((name, handler))
return self.connect_response
@@ -144,5 +144,5 @@ def __call__(self, environ, start_response):
self.environs.append(environ)
start_response('200 OK', [])
return self.response
-
-
+
+

0 comments on commit 87db8df

Please sign in to comment.