Пример #1
0
 def test_svn_repoc_hash_wo_subdir(self):
     '''Test to get svn repocache dir without subdir'''
     scm_object = Svn(self.cli, self.tasks)
     scm_object.url = 'https://github.com/openSUSE/obs-service-tar_scm.git'
     repohash = scm_object.get_repocache_hash('')
     self.assertEqual(
         repohash,
         'd5a57bc8ad6a3ecbca514a1a6fb48e2c9ee183ceb5f7d42e9fd5836918bd540c')
Пример #2
0
 def test_svn_repoc_hash_w_subdir(self):
     '''
     This test case proves that subdir is ignored in
     TarSCM.base.scm.get_repocache_hash
     '''
     scm_object = Svn(self.cli, self.tasks)
     scm_object.url = 'https://github.com/openSUSE/obs-service-tar_scm.git'
     repohash = scm_object.get_repocache_hash('subdir')
     self.assertEqual(
         repohash,
         'b9761648b96f105d82a97b8a81f1ca060b015a3f882ef9a55ae6b5bf7be0d48a')