Skip to content

Commit

Permalink
Minor styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jaderabbit committed Jul 10, 2014
1 parent 56f9c8d commit 87e0a3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions vxaat/tests/test_ussd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

class TestAatUssdTransport(VumiTestCase):


@inlineCallbacks
def setUp(self):
request_defaults = {
Expand All @@ -25,12 +24,12 @@ def setUp(self):
self.tx_helper = self.add_helper(
HttpRpcTransportHelper(
AatUssdTransport,
request_defaults=request_defaults
request_defaults=request_defaults,
)
)
self.transport = yield self.tx_helper.get_transport(self.config)
self.transport_url = self.transport.get_transport_url(
self.config['web_path']
self.config['web_path'],
)

def callback_url(self):
Expand Down Expand Up @@ -66,12 +65,16 @@ def test_inbound_begin(self):

self.assert_inbound_message(
msg,
content=user_content
content=user_content,
)

reply_content = 'We are the Knights Who Say ... Ni!'
reply = msg.reply(reply_content)
self.tx_helper.dispatch_outbound(reply)
response = yield d

self.assert_outbound_message(response.delivered_body, reply_content, self.callback_url())
self.assert_outbound_message(
response.delivered_body,
reply_content,
self.callback_url(),
)
2 changes: 1 addition & 1 deletion vxaat/ussd.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def handle_raw_inbound_message(self, message_id, request):
values, field_value_errors = self.get_field_values(
request,
self.EXPECTED_FIELDS,
self.IGNORE_FIELDS
self.IGNORE_FIELDS,
)
errors.update(field_value_errors)

Expand Down

0 comments on commit 87e0a3a

Please sign in to comment.