Beispiel #1
0
 def testGs(self):
     uri = 'gs://blah/blah/blah.txt'
     self.assertEquals(bootstrap.GUBERNATOR + '/blah/blah',
                       bootstrap.gubernator_uri(self.create_path(uri)))
Beispiel #2
0
 def testMultipleGs(self):
     uri = 'gs://hello/gs://there'
     self.assertEquals(bootstrap.GUBERNATOR + '/hello/gs:',
                       bootstrap.gubernator_uri(self.create_path(uri)))
Beispiel #3
0
 def testNonGS(self):
     uri = 'hello/world'
     self.assertEquals('hello',
                       bootstrap.gubernator_uri(self.create_path(uri)))
 def testGs(self):
     uri = 'gs://blah/blah/blah.txt'
     self.assertEquals(
         bootstrap.GUBERNATOR + '/blah/blah',
         bootstrap.gubernator_uri(self.create_path(uri)))
 def testMultipleGs(self):
     uri = 'gs://hello/gs://there'
     self.assertEquals(
         bootstrap.GUBERNATOR + '/hello/gs:',
         bootstrap.gubernator_uri(self.create_path(uri)))
 def testNonGS(self):
     uri = 'hello/world'
     self.assertEquals('hello', bootstrap.gubernator_uri(self.create_path(uri)))