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