django.utils.six.moves.http_client.FORBIDDEN

Here are the examples of the python api django.utils.six.moves.http_client.FORBIDDEN taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: django-oscar
Source File: catalogue_tests.py
View license
    def test_cant_create_a_child_product(self):
        parent_product = create_product(structure='parent')
        url = reverse(
            'dashboard:catalogue-product-create-child',
            kwargs={'parent_pk': parent_product.pk})
        response = self.get(url, status='*')
        self.assertEqual(http_client.FORBIDDEN, response.status_code)