in plasma-store/src/tests.rs [131:153]
fn plasma_client_contains() {
let pc = build_client();
let oid = ObjectId::rand();
// make sure the object is not in the store
assert_eq!(
false,
pc.contains(&oid).unwrap(),
"object should not be in the store"
);
// put object into the store
let data = [1u8, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
pc.create_and_seal(oid.clone(), &data, &[]).unwrap();
// make sure the object is in the store
assert_eq!(
true,
pc.contains(&oid).unwrap(),
"object should be in the store"
);
}