def test_is_exists_return_true_when_attr_exists(self, mock_store_wrapper):
     credential_provider = KeystoreCredentialsProvider()
     self.assertEquals(True, credential_provider.is_exists(TEST_HOSTNAME))
 def test_is_exists_raises_exception_when_exception_is_thrown_by_get_password(
         self, mock_store_wrapper):
     credential_provider = KeystoreCredentialsProvider()
     with self.assertRaises(Exception):
         credential_provider.is_exists(TEST_HOSTNAME)
 def test_is_exists_return_false_if_attr_not_exists(self,
                                                    mock_store_wrapper):
     credential_provider = KeystoreCredentialsProvider()
     self.assertEquals(False, credential_provider.is_exists(TEST_HOSTNAME))