Exemple #1
0
 def test_svn_get_repocache_hash_without_subdir(self):
     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')
Exemple #2
0
 def test_svn_get_repocache_hash_with_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')
 def test_svn_get_repocache_hash_with_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')
 def test_svn_get_repocache_hash_without_subdir(self):
     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')