Beispiel #1
0
 def test_sha_cmp_not_equal(self):
     self.assertFalse(
         action.sha_cmp('aaabbb12',
                        'f259660b128ae59133dff123998ee9b643aff050'))
Beispiel #2
0
 def test_sha_cmp_short_length(self):
     self.assertFalse(
         action.sha_cmp('f25', 'f259660b128ae59133dff123998ee9b643aff050'))
Beispiel #3
0
 def test_sha_cmp_equal(self):
     self.assertTrue(
         action.sha_cmp('f259660',
                        'f259660b128ae59133dff123998ee9b643aff050'))