コード例 #1
0
 def test_get_bootstrap_content(self):
     self.assertEqual(
         '',
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, '/non/existing')))
     self.assertEqual(
         '',
         buildout._get_bootstrap_content(os.path.join(
             self.tdir, 'var/tb/1')))
     self.assertEqual(
         'foo\n',
         buildout._get_bootstrap_content(os.path.join(
             self.tdir, 'var/tb/2')))
コード例 #2
0
ファイル: test_zcbuildout.py プロジェクト: yuriks/salt
 def test_get_bootstrap_content(self):
     self.assertEqual(
         '',
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, 'non', 'existing')))
     self.assertEqual(
         '',
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, 'var', 'tb', '1')))
     self.assertEqual(
         'foo{0}'.format(os.linesep),
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, 'var', 'tb', '2')))
コード例 #3
0
 def test_get_bootstrap_content(self):
     self.assertEqual(
         "",
         buildout._get_bootstrap_content(os.path.join(self.tdir, "non", "existing")),
     )
     self.assertEqual(
         "",
         buildout._get_bootstrap_content(os.path.join(self.tdir, "var", "tb", "1")),
     )
     self.assertEqual(
         "foo{}".format(os.linesep),
         buildout._get_bootstrap_content(os.path.join(self.tdir, "var", "tb", "2")),
     )
コード例 #4
0
ファイル: zcbuildout_test.py プロジェクト: DaveQB/salt
 def test_get_bootstrap_content(self):
     self.assertEqual(
         '',
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, '/non/existing'))
     )
     self.assertEqual(
         '',
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, 'var/tb/1')))
     self.assertEqual(
         'foo\n',
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, 'var/tb/2')))