def test__save_password_in_keyring(self): """ Test storing password in the keyring """ cloud._save_password_in_keyring( "salt.cloud.provider.test_case_provider", "fake_username", "fake_password_c8231" ) stored_pw = keyring.get_password("salt.cloud.provider.test_case_provider", "fake_username") keyring.delete_password("salt.cloud.provider.test_case_provider", "fake_username") self.assertEqual(stored_pw, "fake_password_c8231")
def test__save_password_in_keyring(self): ''' Test storing password in the keyring ''' cloud._save_password_in_keyring( 'salt.cloud.provider.test_case_provider', 'fake_username', 'fake_password_c8231') stored_pw = keyring.get_password( 'salt.cloud.provider.test_case_provider', 'fake_username', ) keyring.delete_password( 'salt.cloud.provider.test_case_provider', 'fake_username', ) self.assertEqual(stored_pw, 'fake_password_c8231')
def test__save_password_in_keyring(self): ''' Test storing password in the keyring ''' cloud._save_password_in_keyring( 'salt.cloud.provider.test_case_provider', 'fake_username', 'fake_password_c8231' ) stored_pw = keyring.get_password( 'salt.cloud.provider.test_case_provider', 'fake_username', ) keyring.delete_password( 'salt.cloud.provider.test_case_provider', 'fake_username', ) self.assertEqual(stored_pw, 'fake_password_c8231')
def test__save_password_in_keyring(self): """ Test storing password in the keyring """ # Late import import keyring cloud._save_password_in_keyring( "salt.cloud.provider.test_case_provider", "fake_username", "fake_password_c8231", ) stored_pw = keyring.get_password( "salt.cloud.provider.test_case_provider", "fake_username", ) keyring.delete_password( "salt.cloud.provider.test_case_provider", "fake_username", ) self.assertEqual(stored_pw, "fake_password_c8231")