'Test valid data'

def test_save_msg(self):

    valid_data = {u'to': u'john,    jane', u'body': u'Body'}
    form = ComposeForm(data=valid_data)
    self.assertTrue(form.is_valid())
    sender = get_user_model().objects.get(username=u'jane')
    msg = form.save(sender)
    self.assertEqual(msg.body, valid_data[u'body'])
    self.assertEqual(msg.sender, sender)
    self.assertTrue(msg.sent_at)
    self.assertEqual(msg.recipients.all()[0].username, u'jane')
    self.assertEqual(msg.recipients.all()[1].username, u'john')
