Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(25)  |  Call(23)  |  Derive(0)  |  Import(2)

src/d/e/defend_against_fruit-HEAD/pypi_redirect/pypi_redirect/test/unit_tests/index_parser_test.py   defend_against_fruit(Download)
                         '#md5=b9e637ba15a27b31b7f94b8809cdebe3',
            checksums=index_parser.Checksums(
                md5='b9e637ba15a27b31b7f94b8809cdebe3',
                sha1=None))),
        ('Sphinx-0.1.61843.tar.gz', index_parser.IndexRow(
            download_url='http://pypi.acme.com/packages'
                         '/source/S/Sphinx/Sphinx-0.1.61843.tar.gz',
            checksums=index_parser.Checksums(
                md5=None,
                         '/2.6/S/Sphinx/Sphinx-0.6.5-py2.6.egg',
            checksums=index_parser.Checksums(
                md5=None,
                sha1=None))),
        ('Sphinx-0.6b1-py2.5.egg', index_parser.IndexRow(
            download_url='https://pypi.python.org/simple/Sphinx/../../packages'
                         '/2.5/S/Sphinx/Sphinx-0.6b1-py2.5.egg'
                         '#md5=b877f156e5c4b22257c47873021da3d2',
            checksums=index_parser.Checksums(
                md5='b877f156e5c4b22257c47873021da3d2',
                         '#md5=8139b5a66e41202b362bac270eef26ad',
            checksums=index_parser.Checksums(
                md5='8139b5a66e41202b362bac270eef26ad',
                sha1=None))),
        ('Sphinx-0.6-py2.5.egg', index_parser.IndexRow(

src/d/e/defend_against_fruit-HEAD/pypi_redirect/pypi_redirect/test/unit_tests/index_builder_test.py   defend_against_fruit(Download)
from collections import OrderedDict
from nose.tools import eq_
from _utils import read_index
from ...server_app import index_builder
from ...server_app.index_parser import IndexRow, Checksums
                    '#md5=b9e637ba15a27b31b7f94b8809cdebe3'),
                checksums=Checksums(
                    md5='b9e637ba15a27b31b7f94b8809cdebe3',
                    sha1=None))),
        ('Sphinx-0.1.61843.tar.gz',
                    'Sphinx-0.1.61843.tar.gz'),
                checksums=Checksums(
                    md5=None,
                    sha1=None))),
        ('Sphinx-0.6.5-py2.6.egg',
                    'Sphinx-0.6.5-py2.6.egg'),
                checksums=Checksums(
                    md5=None,
                    sha1=None))),
        ('Sphinx-0.6b1-py2.5.egg',
                    '#md5=b877f156e5c4b22257c47873021da3d2'),
                checksums=Checksums(
                    md5='b877f156e5c4b22257c47873021da3d2',
                    sha1=None))),
        ('Sphinx-0.1.61945-py2.5.egg',

src/d/e/defend_against_fruit-HEAD/pypi_redirect/pypi_redirect/test/unit_tests/file_handler_test.py   defend_against_fruit(Download)
from requests import RequestException
from ...server_app.handler.file_handler import FileHandler
from ...server_app.index_parser import IndexRow, Checksums
from _utils import FunctionStub, RequestStub, ResponseStub
from _utils import assert_http_redirect, assert_http_not_found
def _generate_file_entry(has_md5=True, has_sha1=True):
    checksums = Checksums(
        md5='MD5-nose-1.2.1.tar.gz' if has_md5 else None,
        sha1='SHA1-nose-1.2.1.tar.gz' if has_sha1 else None)
 
            download_url='http://some_url.com/nose/nose-1.2.0.tar.gz',
            checksums=Checksums(
                md5='MD5-nose-1.2.0.tar.gz',
                sha1=None))),
        (file_entry.filename, file_entry.index_row),
        ('nose-1.2.1.egg', IndexRow(
            download_url='http://some_url.com/nose/nose-1.2.1.egg',
            checksums=Checksums(
                md5='MD5-nose-1.2.1.egg',