message: Fixed Indy-Cli tests
diff: @@ -863,6 +863,7 @@ pub mod tests {
  use commands::pool::tests::{create_and_connect_pool, disconnect_and_delete_pool};
  use commands::did::tests::{new_did, use_did, SEED_TRUSTEE, DID_TRUSTEE, SEED_MY1, DID_MY1, VERKEY_MY1, SEED_MY3, DID_MY3, VERKEY_MY3};
  use libindy::ledger::Ledger;
  + use libindy::did::Did;
  mod nym {
  use super::*;
  @@ -1191,7 +1192,7 @@ pub mod tests {
  use super::*;
  #[test]
  - pub fn get_attrib_worksa() {
  + pub fn get_attrib_works() {
  let ctx = CommandContext::new();
  create_and_open_wallet(&ctx);
  @@ -1248,8 +1249,7 @@ pub mod tests {
  create_and_open_wallet(&ctx);
  create_and_connect_pool(&ctx);
  - new_did(&ctx, SEED_TRUSTEE);
  - use_did(&ctx, DID_TRUSTEE);
  + let did = crate_send_and_use_new_nym(&ctx);
  {
  let cmd = schema_command::new();
  let mut params = CommandParams::new();
  @@ -1258,7 +1258,7 @@ pub mod tests {
  params.insert("attr_names", "name,age".to_string());
  cmd.execute(&ctx, &params).unwrap();
  }
  - _ensure_schema_added(&ctx, DID_TRUSTEE);
  + _ensure_schema_added(&ctx, &did);
  close_and_delete_wallet(&ctx);
  disconnect_and_delete_pool(&ctx);
  }
  @@ -1427,8 +1427,7 @@ pub mod tests {
  create_and_open_wallet(&ctx);
  create_and_connect_pool(&ctx);
  - new_did(&ctx, SEED_TRUSTEE);
  - use_did(&ctx, DID_TRUSTEE);
  + let did = crate_send_and_use_new_nym(&ctx);
  {
  let cmd = claim_def_command::new();
  let mut params = CommandParams::new();
  @@ -1437,7 +1436,7 @@ pub mod tests {
  params.insert("primary", r#"{"n":"1","s":"1","rms":"1","r":{"age":"1","name":"1"},"rctxt":"1","z":"1"}"#.to_string());
  cmd.execute(&ctx, &params).unwrap();
  }
  - _ensure_claim_def_added(&ctx, DID_TRUSTEE);
  + _ensure_claim_def_added(&ctx, &did);
  close_and_delete_wallet(&ctx);
  disconnect_and_delete_pool(&ctx);
  }
  @@ -1860,6 +1859,16 @@ pub mod tests {
  });
  }
  + pub fn crate_send_and_use_new_nym(ctx: &CommandContext) -> String {
  + let (wallet_handle, _) = get_opened_wallet(ctx).unwrap();
  + new_did(&ctx, SEED_TRUSTEE);
  + use_did(&ctx, DID_TRUSTEE);
  + let (did, verkey) = Did::new(wallet_handle, "{}").unwrap();
  + send_nym(ctx, &did, &verkey, None);
  + use_did(&ctx, &did);
  + did
  + }
  +
  pub fn send_nym(ctx: &CommandContext, did: &str, verkey: &str, role: Option<&str>) {
  let cmd = nym_command::new();
  let mut params = CommandParams::new();
  