This file is indexed.

/usr/lib/python2.7/dist-packages/van.testing-3.0.0.egg-info/PKG-INFO is in python-van.testing 3.0.0-0ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Metadata-Version: 1.1
Name: van.testing
Version: 3.0.0
Summary: Layers for zope.testing to simplify test setups
Home-page: http://pypi.python.org/pypi/van.testing
Author: Vanguardistas LLC
Author-email: zope-dev@zope.org
License: ZPL 2.1
Description: .. contents::
        
        van.testing provides tools for testing zope3/WSGI based applications that do
        not use the ZODB or local utilities.
        
        Testing Utilities
        -----------------
        
        The most common use of this testing module is functional testing zope
        applications. It provides tools to setup layers which load the configuration
        ZCML as well as setting up wsgi_intercept in a layer.
        
        This test is part of such a layer (setup in van.testing.tests.FunctionalLayer):
        
            >>> from wsgi_intercept import WSGI_HTTPConnection as HTTPConnection
            >>> conn = HTTPConnection('localhost', 80)
        
            >>> conn.request('GET', '/')
            >>> r = conn.getresponse()
            >>> print r.read() # doctest: +ELLIPSIS
            {'HTTP_ACCEPT_ENCODING': 'identity',
             'HTTP_HOST': 'localhost',
             'PATH_INFO': '/',
             'QUERY_STRING': '',
             'REMOTE_ADDR': '127.0.0.1',
             'REQUEST_METHOD': 'GET',
             'SCRIPT_NAME': '',
             'SERVER_NAME': 'localhost',
             'SERVER_PORT': '80',
             'SERVER_PROTOCOL': 'HTTP/1.1\r\n',
             'wsgi.errors': <cStringIO.StringO object at ...>,
             'wsgi.input': <cStringIO.StringI object at ...>,
             'wsgi.multiprocess': 0,
             'wsgi.multithread': 0,
             'wsgi.run_once': 0,
             'wsgi.url_scheme': 'http',
             'wsgi.version': (1, 0)}
            Marker: MARKER
        
        Layers
        ------
        
        Some basic layers useful for making test setups.
        
            >>> import os.path
            >>> from van.testing.layer import zcml_layer, null_layer
        
        A zcml layer which sets up and tears down a zcml test harness (but is much
        simpler than that provided with zope.app.functional):
        
            >>> class ZCMLLayer:
            ...     zcml = os.path.join(os.path.dirname(__file__), 'ftesting.zcml')
            >>> zcml_layer(ZCMLLayer)
        
        Some default layers are provided for use with zope.testing, a "null" layer that
        specifically does nothing. This is useful for layers which inherit from other
        layers but where you don't want setup/teardown functions run twice (is this a
        zope.testing bug?):
        
            >>> class ExampleNullLayer(ZCMLLayer):
            ...     pass
            >>> null_layer(ExampleNullLayer)
        
        This test runs in the layer van.testing.tests.ZCMLLayer, so we can get the
        "test" utility but not the test_extra utility (see zcml_features.txt for an
        example of a zcml layer with features):
                
            >>> from zope.interface import Interface
            >>> from zope.component import queryUtility
            >>> queryUtility(Interface, name="test", default='None')
            'MARKER'
            >>> queryUtility(Interface, name="test_extra", default='None')
            'None'
        
        
        Changes
        =======
        
        3.0.0 (2009-10-28)
        ------------------
        
        - Add an option to have a zcml_features attribute on a zcml layer indicating
          the features to load when loading the zcml.
        
        2.0.1 (2009-04-07)
        ------------------
        
        - Allow users to specify the domain and port of the wsgi_intercept_layer by
          adding those attributes to the class.
        - Fix testbrowser support a bit so that it performs more like
          zope.testbrowser.testing.Browser.
        - Remove support for local component registrys (zope.site). This brings in the
          whole ZODB as zope.site's tests currently depend on it.
        
        2.0.0 (2009-04-01)
        ------------------
        
        - Remove dependencies by using zope.configuration.xmlconfig to setup zcml
          rather than zope.app.appsetup.  This leaves out some security configuration
          but the win from less dependencies is massive. In my tests, no tests had any
          issues with this.
        - Add a wsgi_intercept layer and a functional_layer that combines both zcml
          and wsgi_intercept layer.
        
        1.0.0 (2008-11-21)
        ------------------
        
        - Initial Release
        
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Zope Public License
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Testing
Classifier: Development Status :: 5 - Production/Stable