Ejemplo n.º 1
0
 def test_extract_min_expiration_for_multiple_identical_credentials(self):
     input_ = {'test_role1':  '{"Expiration": "1970-01-01T00:00:00Z"}',
               'test_role2':  '{"Expiration": "1970-01-01T00:00:00Z"}'}
     expected = "1970-01-01T00:00:00Z"
     received = extract_min_expiration(input_)
     self.assertEqual(expected, received)
Ejemplo n.º 2
0
 def test_extract_min_expiration_for_single_credential(self):
     input_ = {'test_role':  '{"Expiration": "1970-01-01T00:00:00Z"}'}
     expected = "1970-01-01T00:00:00Z"
     received = extract_min_expiration(input_)
     self.assertEqual(expected, received)