def test_post(self):
        self.login()
        response = self.client.post(self.url, self.data)
        self.assertEqual(response.status_code, 200)
        self.assertEqual(len(self.outbound), 1)
        msg = self.outbound[0]
        self.assertEqual(msg.text, self.message)
        self.assertTrue(self.connection1 in msg.connections)
        self.assertTrue(self.connection2 in msg.connections)
Tests that creating a new node with a new root works as expected.
dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/contrib/messaging/tests/test_views.py/TestSendView.test_post--crossover with--dataset/ETHPy150Open malcolmt/django-acacia/acacia/tests/test_models.py/TopicTest.test_create_by_full_name5