'Sending a message to a nonexistent stream fails.'

def test_message_to_nonexistent_stream(self):

    self.login(self.example_email('hamlet'))
    self.assertFalse(Stream.objects.filter(name='nonexistent_stream'))
    result = self.client_post('/json/messages', {'type': 'stream', 'to': 'nonexistent_stream', 'client': 'test    suite', 'content': 'Test    message', 'subject': 'Test    subject'})
    self.assert_json_error(result, "Stream    'nonexistent_stream'    does    not    exist")
