コード例 #1
0
ファイル: test_pxe_utils.py プロジェクト: olliewalsh/ironic
 def test_get_tftp_path_prefix_without_trailing_slash(self):
     self.config(tftp_root='/tftpboot-path', group='pxe')
     path_prefix = pxe_utils.get_tftp_path_prefix()
     self.assertEqual(path_prefix, '/tftpboot-path/')
コード例 #2
0
ファイル: test_pxe_utils.py プロジェクト: Tehsmash/ironic
 def test_get_tftp_path_prefix_without_trailing_slash(self):
     self.config(tftp_root='/tftpboot-path', group='pxe')
     path_prefix = pxe_utils.get_tftp_path_prefix()
     self.assertEqual(path_prefix, '/tftpboot-path/')