Ejemplo n.º 1
0
 def test_rcfile(self):
     environ = {generic.STARTUP_ENVIRON_NAME: __file__}
     rcfile = join(FILES_DIR, 'python', 'a.py')
     files = list(
         generic.find_startup_files(environ, rcfile))
     self.assert_(rcfile in files)
     self.assert_(__file__ not in files)
Ejemplo n.º 2
0
 def test_environ(self):
     environ = {generic.STARTUP_ENVIRON_NAME: __file__}
     files = list(generic.find_startup_files(environ))
     self.assert_(__file__ in files)
Ejemplo n.º 3
0
 def test_empty(self):
     files = list(generic.find_startup_files())
     self.assertNotNone(files)