コード例 #1
0
ファイル: general_tests.py プロジェクト: novakadam94/util
 def test_cfg_path7(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     util.set_config_base_dir('etc/occo', prefix=False)
     self.assertEqual(util.cfg_file_path('alma'),
                      os.path.join(os.getcwd(), 'etc/occo/alma'))
コード例 #2
0
ファイル: general_tests.py プロジェクト: occopus/util
 def test_cfg_path7(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     util.set_config_base_dir('etc/occo', prefix=False)
     self.assertEqual(util.cfg_file_path('alma'),
                      os.path.join(os.getcwd(), 'etc/occo/alma'))
コード例 #3
0
ファイル: general_tests.py プロジェクト: novakadam94/util
 def test_cfg_path6(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     self.assertEqual(util.cfg_file_path('/etc/occo/alma', 'anyth:ng'),
                      sys.prefix + '/etc/occo/alma')
コード例 #4
0
ファイル: general_tests.py プロジェクト: novakadam94/util
 def test_cfg_path4(self):
     import sys, os
     util.set_config_base_dir('/etc/occo')
     self.assertEqual(util.cfg_file_path('alma', '/etc/occo2'),
                      '/etc/occo2/alma')
コード例 #5
0
ファイル: general_tests.py プロジェクト: novakadam94/util
 def test_cfg_path3(self):
     import sys, os
     util.set_config_base_dir('/etc/occo', prefix=False)
     self.assertEqual(util.cfg_file_path('alma'),
                      '/etc/occo/alma')
コード例 #6
0
ファイル: general_tests.py プロジェクト: novakadam94/util
 def test_cfg_path2(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     self.assertEqual(util.cfg_file_path('alma', '/etc/occo'),
                      os.path.join('/etc/occo', 'alma'))
コード例 #7
0
ファイル: general_tests.py プロジェクト: novakadam94/util
 def test_cfg_path1(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     self.assertEqual(util.cfg_file_path('alma'),
                      os.path.join(os.getcwd(), 'alma'))
コード例 #8
0
ファイル: general_tests.py プロジェクト: occopus/util
 def test_cfg_path5(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     self.assertEqual(util.cfg_file_path('/etc/occo/alma'),
                      sys.prefix + '/etc/occo/alma')
コード例 #9
0
ファイル: general_tests.py プロジェクト: occopus/util
 def test_cfg_path4(self):
     import sys, os
     util.set_config_base_dir('/etc/occo')
     self.assertEqual(util.cfg_file_path('alma', '/etc/occo2'),
                      '/etc/occo2/alma')
コード例 #10
0
ファイル: general_tests.py プロジェクト: occopus/util
 def test_cfg_path3(self):
     import sys, os
     util.set_config_base_dir('/etc/occo', prefix=False)
     self.assertEqual(util.cfg_file_path('alma'), '/etc/occo/alma')
コード例 #11
0
ファイル: general_tests.py プロジェクト: occopus/util
 def test_cfg_path2(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     self.assertEqual(util.cfg_file_path('alma', '/etc/occo'),
                      os.path.join('/etc/occo', 'alma'))
コード例 #12
0
ファイル: general_tests.py プロジェクト: occopus/util
 def test_cfg_path1(self):
     import sys, os
     # Reset config path
     util.set_config_base_dir(None)
     self.assertEqual(util.cfg_file_path('alma'),
                      os.path.join(os.getcwd(), 'alma'))