in plasma-store/src/tests.rs [294:320]
fn plasma_client_delete() {
let pc = build_client();
let pc2 = build_client();
let oid = ObjectId::rand();
// 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();
assert_eq!(
true,
pc.contains(&oid).unwrap(),
"object should be in the store"
);
// delete the object
pc.delete(&oid).unwrap();
assert_eq!(
false,
pc.contains(&oid).unwrap(),
"object should not be in the store"
);
assert_eq!(
false,
pc2.contains(&oid).unwrap(),
"client2: object should not be in the store"
);
}