Exemplo n.º 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')))
Exemplo n.º 2
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{0}'.format(os.linesep),
         buildout._get_bootstrap_content(
             os.path.join(self.tdir, 'var', 'tb', '2')))
Exemplo n.º 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")),
     )
Exemplo n.º 4
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')))