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