コード例 #1
0
 def test_raises_io_error_when_file_doesnt_exist_and_require_exists_is_false(
         self):
     invalid_path = os.path.join("this", "path", "doesnt", "exist")
     parser = ShortcutParser()
     with self.assertRaises(IOError):
         parser.parse(invalid_path, require_exists=True)
コード例 #2
0
ファイル: test_vdf_parsing.py プロジェクト: Dennovin/pysteam
 def test_raises_io_error_when_file_doesnt_exist(self):
     invalid_path = os.path.join("this", "path", "doesnt", "exist")
     parser = ShortcutParser()
     with self.assertRaises(IOError):
         parser.parse(invalid_path)
コード例 #3
0
 def test_returns_empty_list_when_file_doesnt_exist(self):
     invalid_path = os.path.join("this", "path", "doesnt", "exist")
     parser = ShortcutParser()
     self.assertEqual(parser.parse(invalid_path), [])
コード例 #4
0
 def test_returns_empty_list_when_file_doesnt_exist(self):
   invalid_path = os.path.join("this", "path", "doesnt", "exist")
   parser = ShortcutParser()
   self.assertEqual(parser.parse(invalid_path), [])