2c2
< import unittest
---
> import pytest
10,13c10,12
< def test_go_isolation_rootfs_chroot(self):
< if not self.is_su:
< print("requires root")
< raise unittest.SkipTest()
---
> def test_go_isolation_rootfs_chroot(self, is_su):
> if not is_su:
> pytest.skip('requires root')
16,17c15
< print('chroot tests not supported on OSX')
< raise unittest.SkipTest()
---
> pytest.skip('chroot tests not supported on OSX')
20c18
< 'rootfs': self.testdir,
---
> 'rootfs': self.temp_dir,
27c25
< self.assertEqual(obj['FileExists'], True, 'app relative to rootfs')
---
> assert obj['FileExists'] == True, 'app relative to rootfs'
30,34c28
< self.assertEqual(obj['FileExists'], False, 'file should not exists')
<
<
< if __name__ == '__main__':
< TestGoIsolationRootfs.main()
---
> assert obj['FileExists'] == False, 'file should not exists'