Exemplo n.º 1
0
    def test_package(self):
        fm = imports.find_module('foo')

        self.assertEquals(fm[0], None)
        self.assertEquals(fm[1], os.path.join(self.path, 'foo'))
Exemplo n.º 2
0
    def test_subpackage(self):
        fm = imports.find_module('bar', [os.path.join(self.path, 'foo')])

        self.assertEquals(fm[0], None)
        self.assertEquals(fm[1], os.path.join(self.path, 'foo', 'bar'))
Exemplo n.º 3
0
    def test_root(self):
        fm = imports.find_module('spam')

        self.assertEquals(type(fm[0]), file)
        self.assertTrue(fm[1].startswith(os.path.join(self.path, 'spam.py')))
Exemplo n.º 4
0
    def test_subpackage(self):
        fm = imports.find_module('bar', [os.path.join(self.path, 'foo')])

        self.assertEquals(fm[0], None)
        self.assertEquals(fm[1], os.path.join(self.path, 'foo', 'bar'))
Exemplo n.º 5
0
    def test_package(self):
        fm = imports.find_module('foo')

        self.assertEquals(fm[0], None)
        self.assertEquals(fm[1], os.path.join(self.path, 'foo'))
Exemplo n.º 6
0
    def test_root(self):
        fm = imports.find_module('spam')

        self.assertEquals(type(fm[0]), file)
        self.assertTrue(fm[1].startswith(os.path.join(self.path, 'spam.py')))
    def test_subpackage(self):
        fm = imports.find_module("bar", [os.path.join(self.path, "foo")])

        self.assertEquals(fm[0], None)
        self.assertEquals(fm[1], os.path.join(self.path, "foo", "bar"))