コード例 #1
0
 def test_includedir_in_names(self):
     """AcDirVars.gvar_names() should contain 'includedir'"""
     self.assertIn('includedir', AcDirVars.gvar_names())
コード例 #2
0
 def test_sharedstatedir_in_names(self):
     """AcDirVars.gvar_names() should contain 'sharedstatedir'"""
     self.assertIn('sharedstatedir', AcDirVars.gvar_names())
コード例 #3
0
 def test_localstatedir_in_names(self):
     """AcDirVars.gvar_names() should contain 'localstatedir'"""
     self.assertIn('localstatedir', AcDirVars.gvar_names())
コード例 #4
0
 def test_datadir_in_names(self):
     """AcDirVars.gvar_names() should contain 'datadir'"""
     self.assertIn('datadir', AcDirVars.gvar_names())
コード例 #5
0
 def test_sysconfdir_in_names(self):
     """AcDirVars.gvar_names() should contain 'sysconfdir'"""
     self.assertIn('sysconfdir', AcDirVars.gvar_names())
コード例 #6
0
 def test_exec_prefix_in_names(self):
     self.assertIn('exec_prefix', AcDirVars.gvar_names())
コード例 #7
0
 def test_libexecdir_in_names(self):
     """AcDirVars.gvar_names() should contain 'libexecdir'"""
     self.assertIn('libexecdir', AcDirVars.gvar_names())
コード例 #8
0
 def test_prefix_in_names(self):
     """AcDirVars.gvar_names() should contain 'prefix'"""
     self.assertIn('prefix', AcDirVars.gvar_names())
コード例 #9
0
 def test_gvar_names_filter(self):
     """AcDirVars.gvar_names(filter) should use the filter"""
     self.assertIn('datarootdir', AcDirVars.gvar_names(lambda x : x.startswith('data')))
     self.assertIn('datarootdir', AcDirVars.gvar_names(lambda x : x.startswith('data')))
     self.assertNotIn('bindir', AcDirVars.gvar_names(lambda x : x.startswith('data')))
     self.assertNotIn('pkglibdir', AcDirVars.gvar_names(lambda x : x.startswith('data')))
コード例 #10
0
 def test_manNext_in_names(self):
     """AcDirVars.gvar_names() should contain 'man1ext' .. 'man9ext'"""
     for d in range(1,10):
         self.assertIn('man%sext' % d, AcDirVars.gvar_names())
コード例 #11
0
 def test_manNdir_in_names(self):
     """AcDirVars.gvar_names() should contain 'man1dir' .. 'man9dir'"""
     for d in range(1,10):
         self.assertIn('man%sdir' % d, AcDirVars.gvar_names())
コード例 #12
0
 def test_pkglibdir_in_names(self):
     """AcDirVars.gvar_names() should contain 'pkglibdir'"""
     self.assertIn('pkglibdir', AcDirVars.gvar_names())