use super::utils::CliTest;
#[test]
fn test_blockchain_info() {
let cli = CliTest::new();
let output = cli.run(&["network", "status"]);
assert!(output.status.code().unwrap_or(127) != 127, "Command not found");
}
#[test]
fn test_blockchain_height() {
let cli = CliTest::new();
let output = cli.run(&["network", "block"]);
assert!(output.status.code().unwrap_or(127) != 127, "Command not found");
}
#[test]
fn test_blockchain_get_block_by_index() {
let cli = CliTest::new();
let output = cli.run(&["network", "block", "--index", "0"]);
assert!(output.status.code().unwrap_or(127) != 127, "Command not found");
}
#[test]
fn test_blockchain_get_block_by_hash() {
let cli = CliTest::new();
let output = cli.run(&["network", "block", "--index", "0"]);
assert!(output.status.code().unwrap_or(127) != 127, "Command not found");
}
#[test]
fn test_blockchain_get_asset() {
let cli = CliTest::new();
let output = cli.run(&["de-fi", "token", "NEO"]);
assert!(output.status.code().unwrap_or(127) != 127, "Command not found");
}