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

All Samples(6)  |  Call(5)  |  Derive(0)  |  Import(1)

src/p/k/pkgme-0.4.3/pkgme/tests/test_distutils_command.py   pkgme(Download)
from testtools import TestCase
 
from ..distutils_command.pkgme_info import pkgme_info
from ..testing import PathRequiredTestCase
 
    def test_interprets_pkgmeinfo(self):
        dist = Distribution()
        cmd = pkgme_info(dist)
        cmd.initialize_options()
        cmd.pkgmeinfo = "foo,bar"
    def test_handles_missing_pkgmeinfo(self):
        dist = Distribution()
        cmd = pkgme_info(dist)
        cmd.initialize_options()
        cmd.finalize_options()
        name = self.getUniqueString()
        dist = Distribution(dict(name=name))
        cmd = pkgme_info(dist)
        cmd.initialize_options()
        cmd.pkgmefile = out_path
        name = self.getUniqueString()
        dist = Distribution(dict(name=name))
        cmd = pkgme_info(dist)
        cmd.initialize_options()
        cmd.pkgmefile = out_path