Exemplo n.º 1
0
 def test_invalid_value(self):
     region = get_s3_region_from_endpoint(None)
Exemplo n.º 2
0
 def test_region_with_dualstack(self):
     region = get_s3_region_from_endpoint(
         's3.dualstack.us-west-1.amazonaws.com')
     eq_(region, 'us-west-1')
Exemplo n.º 3
0
 def test_region_us_east(self):
     region = get_s3_region_from_endpoint('s3.amazonaws.com')
     eq_(region, None)
Exemplo n.º 4
0
 def test_region_none(self):
     region = get_s3_region_from_endpoint('localhost')
     eq_(region, None)
Exemplo n.º 5
0
 def test_region_us_west(self):
     region = get_s3_region_from_endpoint('s3-us-west-1.amazonaws.com')
     eq_(region, 'us-west-1')
Exemplo n.º 6
0
 def test_invalid_value(self):
     region = get_s3_region_from_endpoint(None)
Exemplo n.º 7
0
 def test_region_us_east(self):
     region = get_s3_region_from_endpoint('s3.amazonaws.com')
     eq_(region, None)
Exemplo n.º 8
0
 def test_region_with_dualstack(self):
     region = get_s3_region_from_endpoint('s3.dualstack.us-west-1.amazonaws.com')
     eq_(region, 'us-west-1')
Exemplo n.º 9
0
 def test_region_us_west(self):
     region = get_s3_region_from_endpoint('s3-us-west-1.amazonaws.com')
     eq_(region, 'us-west-1')
Exemplo n.º 10
0
 def test_region_none(self):
     region = get_s3_region_from_endpoint('localhost')
     eq_(region, None)