Esempio n. 1
0
 def test_absolute_path(self):
     from gf.rejuice.config import get_ini_section
     
     result = get_ini_section('/This/a1.ini', 'config:This1/szla2.ini#section2', error_info='ERROR_INFO')
     self.assertEqual(result, ('/This/This1/szla2.ini', 'section2')) 
Esempio n. 2
0
 def test_egg(self):
     from gf.rejuice.config import get_ini_section
     
     result = get_ini_section('/This/a1.ini', 'egg:my.package1/This1/szla2.ini#section2', error_info='ERROR_INFO', modules=self.fake_modules)
     self.assertEqual(result, ('/This/path1/This1/szla2.ini', 'section2')) 
Esempio n. 3
0
 def test_basic(self):
     from gf.rejuice.config import get_ini_section
     
     result = get_ini_section('/This/a1.ini', 'section1', error_info='ERROR_INFO')
     self.assertEqual(result, ('/This/a1.ini', 'section1'))