def test_includedir_in_names(self): """AcDirVars.gvar_names() should contain 'includedir'""" self.assertIn('includedir', AcDirVars.gvar_names())
def test_sharedstatedir_in_names(self): """AcDirVars.gvar_names() should contain 'sharedstatedir'""" self.assertIn('sharedstatedir', AcDirVars.gvar_names())
def test_localstatedir_in_names(self): """AcDirVars.gvar_names() should contain 'localstatedir'""" self.assertIn('localstatedir', AcDirVars.gvar_names())
def test_datadir_in_names(self): """AcDirVars.gvar_names() should contain 'datadir'""" self.assertIn('datadir', AcDirVars.gvar_names())
def test_sysconfdir_in_names(self): """AcDirVars.gvar_names() should contain 'sysconfdir'""" self.assertIn('sysconfdir', AcDirVars.gvar_names())
def test_exec_prefix_in_names(self): self.assertIn('exec_prefix', AcDirVars.gvar_names())
def test_libexecdir_in_names(self): """AcDirVars.gvar_names() should contain 'libexecdir'""" self.assertIn('libexecdir', AcDirVars.gvar_names())
def test_prefix_in_names(self): """AcDirVars.gvar_names() should contain 'prefix'""" self.assertIn('prefix', AcDirVars.gvar_names())
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')))
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())
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())
def test_pkglibdir_in_names(self): """AcDirVars.gvar_names() should contain 'pkglibdir'""" self.assertIn('pkglibdir', AcDirVars.gvar_names())