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