Adding in a new message data model and the corresponding methods to in the API.

This commit is contained in:
charltonaustin 2016-10-07 15:56:58 -04:00
parent 7d8cc1fc34
commit 1e733ddffb
8 changed files with 60 additions and 4 deletions

View file

@ -4283,7 +4283,11 @@ class TestSuperUserManagement(ApiTestCase):
self.login(ADMIN_ACCESS_USER)
# Create a message
self.postJsonResponse(Messages)
self.postJsonResponse(Messages, data=dict(messages=[{"content": "new message"}]))
json = self.getJsonResponse(Messages)
self.assertEquals(len(json['messages']), 2)
if __name__ == '__main__':
unittest.main()