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')))
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')))
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")), )
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')))