Esempio n. 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)
Esempio n. 2
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)
Esempio n. 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)
Esempio n. 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)