aboutsummaryrefslogtreecommitdiff
path: root/src/house.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/house.rs')
-rw-r--r--src/house.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/house.rs b/src/house.rs
index 735413e..64d8faf 100644
--- a/src/house.rs
+++ b/src/house.rs
@@ -5,9 +5,7 @@
use crate::waifu::*;
use crate::errors::Error;
use serde::{Serialize, Deserialize};
-use std::convert::TryFrom;
use virt::connect::Connect;
-use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
#[derive(Serialize, Deserialize, Debug)]
pub enum Address {
@@ -84,16 +82,14 @@ mod test {
#[test]
fn connect_to_house() {
- let h: House = House::new("test:///default".to_string()).unwrap();
+ let _: House = House::new("test:///default".to_string()).unwrap();
}
#[test]
fn list_inhabitants() {
let mut h: House = House::new("test:///default".to_string()).unwrap();
- let empty_vec: Vec<Waifu> = vec![];
-
- h.inhabitants().unwrap();
+ assert_eq!(h.inhabitants().unwrap().len(), 1);
}
}