コード例 #1
0
 def test_valid_known_hosts_file_missing_partial_context(self):
     context = config_utils.PartialConfigContext
     expected = '/bogus/does/not/exist'
     filename = config_parse.valid_known_hosts_file(
         expected,
         context,
     )
     assert_equal(filename, expected)
コード例 #2
0
ファイル: config_parse_test.py プロジェクト: pombredanne/Tron
 def test_valid_known_hosts_file_missing_partial_context(self):
     context = config_utils.PartialConfigContext
     expected = '/bogus/does/not/exist'
     filename = config_parse.valid_known_hosts_file(
         expected,
         context,
     )
     assert_equal(filename, expected)
コード例 #3
0
 def test_valid_known_hosts_file_exists(self):
     filename = config_parse.valid_known_hosts_file(
         self.known_hosts_file.name,
         self.context,
     )
     assert_equal(filename, self.known_hosts_file.name)
コード例 #4
0
 def test_valid_known_hosts_file_exists(self):
     filename = config_parse.valid_known_hosts_file(
         self.known_hosts_file.name, self.context)
     assert_equal(filename, self.known_hosts_file.name)