示例#1
0
 def test_from_dict_all_attrs(self):
     data = {"role_name": "test_rn", "account_id": "123456789012", "external_id": "test_ext_id"}
     access_step = AccessStep.from_dict(data)
     self.assertEqual(
         access_step,
         AccessStep(role_name="test_rn", account_id="123456789012", external_id="test_ext_id"),
     )
示例#2
0
 def test_from_dict_role_name_only(self):
     data = {"role_name": "test_rn"}
     access_step = AccessStep.from_dict(data)
     self.assertEqual(
         access_step, AccessStep(role_name="test_rn"),
     )