PageRenderTime 1779ms queryTime 80ms sortTime 2ms getByIdsTime 1370ms findMatchingLines 325ms

1+ results for '"import unittest" unittest.TestCase self.assert lang:Python' (1779 ms)

Not the results you expected?
test___all__.py https://bitbucket.org/glix/python.git | Python | 183 lines
                    
7
                    
8class AllTest(unittest.TestCase):
                    
9
                    
15            try:
                    
16                exec "import %s" % modname in names
                    
17            except ImportError:
                    
28        all = set(sys.modules[modname].__all__)
                    
29        self.assertEqual(keys, all)
                    
30
                    
154        self.check_all("tty")
                    
155        self.check_all("unittest")
                    
156        self.check_all("urllib")
                    
                
 

Source

Language