'A call to GET /json/messages with valid parameters returns a list of
messages.'

def test_successful_get_messages(self):

    self.login(self.example_email('hamlet'))
    self.get_and_check_messages(dict())
    self.get_and_check_messages(dict(narrow=ujson.dumps([['pm-with', self.example_email('othello')]])))
    self.get_and_check_messages(dict(narrow=ujson.dumps([dict(operator='pm-with', operand=self.example_email('othello'))])))
