def test_has_profile(self): creds = Credentials(profile='my_role') self.assertTrue(creds.has_profile())