예제 #1
0
 def testStripPrefixFromBuildIdInvalidId(self):
   with self.assertRaises(AssertionError):
     queries._StripPrefixFromBuildId('build1')
   with self.assertRaises(AssertionError):
     queries._StripPrefixFromBuildId('build-1-2')
예제 #2
0
 def testStripPrefixFromBuildIdValidId(self):
   self.assertEqual(queries._StripPrefixFromBuildId('build-1'), '1')