message: Simplify queries in test cases
diff: @@ -242,7 +242,7 @@ mod tests {
  mock_dependencies, mock_dependencies_with_balances, mock_env, MOCK_CONTRACT_ADDR,
  };
  // import trait ReadonlyStorage to get access to read
  - use cosmwasm_std::{coins, from_binary, AllBalanceResponse, ReadonlyStorage, StdError};
  + use cosmwasm_std::{coins, ReadonlyStorage, StdError};
  #[test]
  fn proper_initialization() {
  @@ -290,8 +290,8 @@ mod tests {
  assert_eq!(0, res.messages.len());
  // now let's query
  - let query_response = query(&deps, QueryMsg::Verifier {}).unwrap();
  - assert_eq!(query_response.as_slice(), b"{\"verifier\":\"verifies\"}");
  + let query_response = query_verifier(&deps).unwrap();
  + assert_eq!(query_response.verifier, verifier);
  }
  #[test]
  @@ -314,19 +314,17 @@ mod tests {
  assert_eq!(query_response.as_slice(), b"{\"verifier\":\"verifies\"}");
  // change the verifier via migrate
  + let new_verifier = HumanAddr::from("someone else");
  let msg = MigrateMsg {
  - verifier: HumanAddr::from("someone else"),
  + verifier: new_verifier.clone(),
  };
  let env = mock_env(&deps.api, creator.as_str(), &[]);
  let res = migrate(&mut deps, env, msg).unwrap();
  assert_eq!(0, res.messages.len());
  // check it is 'someone else'
  - let query_response = query(&deps, QueryMsg::Verifier {}).unwrap();
  - assert_eq!(
  - query_response.as_slice(),
  - b"{\"verifier\":\"someone else\"}"
  - );
  + let query_response = query_verifier(&deps).unwrap();
  + assert_eq!(query_response.verifier, new_verifier);
  }
  #[test]
  @@ -336,17 +334,11 @@ mod tests {
  let deps = mock_dependencies_with_balances(20, &[(&rich_addr, &rich_balance)]);
  // querying with balance gets the balance
  - let query_msg = QueryMsg::OtherBalance { address: rich_addr };
  - let query_response = query(&deps, query_msg).unwrap();
  - let bal: AllBalanceResponse = from_binary(&query_response).unwrap();
  + let bal = query_other_balance(&deps, rich_addr).unwrap();
  assert_eq!(bal.amount, rich_balance);
  // querying other accounts gets none
  - let query_msg = QueryMsg::OtherBalance {
  - address: HumanAddr::from("someone else"),
  - };
  - let query_response = query(&deps, query_msg).unwrap();
  - let bal: AllBalanceResponse = from_binary(&query_response).unwrap();
  + let bal = query_other_balance(&deps, HumanAddr::from("someone else")).unwrap();
  assert_eq!(bal.amount, vec![]);
  }
  