示例#1
0
 def test_get_change_set(self):
     service = SvnService(self.repo_url, None, None, path_to_config = config.get('svn_path_to_config'))
     self.assertEqual(['typ/web/data/index.html'], service.get_change_set(2))
示例#2
0
 def test_export(self):
     service = SvnService(self.repo_url, None, None, path_to_config = config.get('svn_path_to_config'))
     self.assertEqual([('host/berweb01', 'VARIABLES'), ('host/berweb01', 'VARIABLES/RPM_REQUIRES')], service.export('host/berweb01', 'target/tmp/test', 2))
示例#3
0
 def test_log(self):
     service = SvnService(self.repo_url, None, None, path_to_config = config.get('svn_path_to_config'))
     logs = service.log('', 2, 5)
     self.assertEqual(1, len(logs))
示例#4
0
 def test_get_hosts(self):
     service = SvnService(self.repo_url, None, None, path_to_config = config.get('svn_path_to_config'))
     self.assertEqual(['berweb01', 'devweb01', 'tuvweb01'], service.get_hosts(2))