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