Exemplo n.º 1
0
    def test_model_clean_method(self):
        """Test model `clean()` method"""
        redirect = Redirect(
            local_path='//this_is/////a//local_path',
            destination_url='http://example.com',
        )

        redirect.full_clean()

        assert redirect.local_path == 'this_is/a/local_path'