def test_get_and_post(self):
        self._assert_simple(SimplePostView.as_view()(self.rf.get('/')))
        self._assert_simple(SimplePostView.as_view()(self.rf.post('/')))
        self.assertEqual(SimplePostView.as_view()(
            self.rf.get('/', REQUEST_METHOD='FAKE')
        ).status_code, 405)
Test sending to a direct exchange/queue
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/generic_views/base.py/ViewTest.test_get_and_post--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_rpc_kombu.py/RpcKombuTestCase.test_direct_send_receive