def test_db_path_input_perfect(self): self.assertEqual( paths.db_path_input(self.dirs["perfect"].name), self.dbs["perfect"][0], )
def test_db_path_input_multiple(self): with self.assertRaises(ValueError): paths.db_path_input(self.dirs["multiple"].name)
def test_db_path_input_nothing(self): with self.assertRaises(ValueError): paths.db_path_input(self.dirs["nothing"].name)
def test_db_path_input_nexist(self): with self.assertRaises(FileNotFoundError): paths.db_path_input("/x/y/z")