def test_httpaccesscontrol(self):
        import django
        t = django.VERSION
        
        if t[0] < 1 or (t[0] == 1 and t[1] < 1):
            # options requests can only be tested by django 1.1+
            self.fail('This version of django "%s" does not support http access control' %str(t))
        
        response = self.client.options(self.rpc_path, '', 'text/plain')
        self.assertEqual(response['Access-Control-Allow-Methods'], 'POST, GET, OPTIONS')
        self.assertEqual(response['Access-Control-Max-Age'], '0')
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/rpc4django/tests/test_rpcviews.py/TestRPCViews.test_httpaccesscontrol/original