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

All Samples(10)  |  Call(0)  |  Derive(0)  |  Import(10)

src/s/t/Strap-HEAD/strap/tests/test_resolver.py   Strap(Download)
    def test__zope_dottedname_style_resolve_relative(self):
        import strap.tests
        typ = self._makeOne(package=strap.tests)
        result = typ._zope_dottedname_style(
            '.test_resolver.TestDottedNameResolver')
    def test__zope_dottedname_style_resolve_relative_is_dot(self):
        import strap.tests
        typ = self._makeOne(package=strap.tests)
        result = typ._zope_dottedname_style('.')
        self.assertEqual(result, strap.tests)
    def test_zope_dottedname_style_irrresolveable_relative(self):
        import strap.tests
        typ = self._makeOne(package=strap.tests)
        self.assertRaises(ImportError, typ._zope_dottedname_style,
                          '.notexisting')
    def test__zope_dottedname_style_resolveable_relative(self):
        import strap
        typ = self._makeOne(package=strap)
        result = typ._zope_dottedname_style('.tests')
        from strap import tests
    def test__pkg_resources_style_resolve_relative(self):
        import strap.tests
        typ = self._makeOne(package=strap.tests)
        result = typ._pkg_resources_style(
            '.test_resolver:TestDottedNameResolver')