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)))
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)))