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