Esempio n. 1
0
 def testExtractUrlFiltered(self):
     dep = {
         'url': 'https://chromium.googlesource.com/chromium/src',
         'condition': 'checkout_google_internal',
     }
     self.assertIsNone(deps_utils.ExtractUrl(dep))
Esempio n. 2
0
 def testExtractUrlDictSansUrl(self):
     dep = {
         'condition': 'always',
     }
     with self.assertRaises(KeyError):
         deps_utils.ExtractUrl(dep)
Esempio n. 3
0
 def testExtractUrlNested(self):
     dep = {
         'url': 'https://chromium.googlesource.com/chromium/src',
         'condition': 'always',
     }
     return deps_utils.ExtractUrl(dep)
Esempio n. 4
0
 def testExtractUrlWeirdType(self):
     dep = 1732
     with self.assertRaises(Exception):
         deps_utils.ExtractUrl(dep)
Esempio n. 5
0
 def testExtractUrlSimple(self):
     dep = 'https://chromium.googlesource.com/chromium/src'
     return deps_utils.ExtractUrl(dep)