use socialhunt::hunt_in_site; use socialhunt::sites::SITES; #[test] fn invalid_username_returns_invalid() { for site in SITES { match hunt_in_site(site, &site.invalid_username.to_string()) { Ok(res) => assert!(!res, "{}: Failed", site.name), Err(err) => assert!(false, "{}: {}", site.name, err), } } }