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:
View license
    def test_cant_create_a_child_product(self):
        parent_product = create_product(structure='parent')
        url = reverse(
        response = self.get(url, status='*')
        self.assertEqual(http_client.FORBIDDEN, response.status_code)