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 non-dict helper_metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
jerith committed Mar 17, 2015
1 parent 18a6baf commit 3fee2d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions go/apps/jsbox/tests/test_outbound.py
Expand Up @@ -267,6 +267,14 @@ def test_reply_to_helper_metadata_invalid(self):
to_addr='6789', content='bar', in_reply_to=u'unknown',
helper_metadata={'go': {'conversation': 'someone-elses'}})

def test_reply_to_helper_metadata_wrong_type(self):
return self.assert_cmd_fails(
"'helper_metadata' must be object or null.",
'reply_to',
resource_config={'allowed_helper_metadata': ['voice']},
to_addr='6789', content='bar', in_reply_to=u'unknown',
helper_metadata="Not a dict.")

@inlineCallbacks
def test_reply_to_group(self):
yield self.create_resource({})
Expand Down

0 comments on commit 3fee2d5

Please sign in to comment.