blob: 9d20ebacf7617ba11921df23dd92709c1852c8eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Copyright 2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
import portage
from portage.tests import TestCase
class PreloadPortageSubmodulesTestCase(TestCase):
def testPreloadPortageSubmodules(self):
"""
Verify that _preload_portage_submodules() doesn't leave any
remaining proxies that refer to the portage.* namespace.
"""
portage.proxy.lazyimport._preload_portage_submodules()
for name in portage.proxy.lazyimport._module_proxies:
self.assertEqual(name.startswith('portage.'), False)
|