'Test the save method of :class:`ComposeForm`
We don\'t need to make the ``to`` field sweat because we have done that
in the ``fields`` test.'

def test_invalid_data(self):

    invalid_data_dicts = [{u'data': {u'to': u'john', u'body': u''}, u'error': (u'body', [u'This    field    is    required.'])}]
    for invalid_dict in invalid_data_dicts:
        form = ComposeForm(data=invalid_dict[u'data'])
        self.assertFalse(form.is_valid())
        self.assertEqual(form.errors[invalid_dict[u'error'][0]], invalid_dict[u'error'][1])
