Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Add test for vumi_username_for_conversation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Jan 13, 2014
1 parent 9daf80b commit c5bb8d0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions go/apps/rapidsms/tests/test_vumi_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ def test_teardown_application(self):
yield app.startService()
yield app.stopService()

@inlineCallbacks
def test_vumi_username_for_conversation(self):
app = yield self.app_helper.get_app_worker(self.APP_CONFIG)
conv = yield self.app_helper.create_conversation(
config=self.CONV_CONFIG)
self.assertEqual(
app.vumi_username_for_conversation(conv),
"%s:%s" % (conv.user_account.key, conv.key)
)

@inlineCallbacks
def test_get_config_for_message(self):
app = yield self.app_helper.get_app_worker(self.APP_CONFIG)
Expand Down

0 comments on commit c5bb8d0

Please sign in to comment.