'You can set a message as starred/un-starred through
POST /json/messages/flags.'

def test_change_star(self):

    self.login(self.example_email('hamlet'))
    message_ids = [self.send_message(self.example_email('hamlet'), self.example_email('hamlet'), Recipient.PERSONAL, 'test')]
    result = self.change_star(message_ids)
    self.assert_json_success(result)
    for msg in self.get_messages():
        if (msg['id'] in message_ids):
            self.assertEqual(msg['flags'], ['starred'])
        else:
            self.assertEqual(msg['flags'], ['read'])
    result = self.change_star(message_ids, False)
    self.assert_json_success(result)
    for msg in self.get_messages():
        if (msg['id'] in message_ids):
            self.assertEqual(msg['flags'], [])
