@@ -0,0 +1,827 @@
+import os%0Aimport platform%0Aimport tempfile%0Afrom .test_utils import EnvironmentTestCase%0A%0A_EXPECTED_FILE_IN_MOUNT_NAME = %22%7Bmount_name%7D_file%22%0A%0Aclass ChrootingTestCase(EnvironmentTestCase):%0A    def setUp(self):%0A        super(ChrootingTestCase, self).setUp()%0A        if os.getuid() != 0:%0A            self.skipTest(%22Not root%22)%0A        if platform.system() != %22Linux%22:%0A            self.skipTest(%22Not linux%22)%0A        self.environment.load_configuration_file(os.path.join(os.path.dirname(__file__), %22..%22, %22example_config.py%22))%0A    def test__chrooting(self):%0A        self.assertChrootFileExists(%22/dwight_base_image_file%22)%0A    def assertChrootFileExists(self, path):%0A        p = self.environment.run_command_in_chroot(%22test -e %7B%7D%22.format(path))%0A        self.assertEquals(p.returncode, 0, %22File %7B0!r%7D does not exist%22.format(path))%0A        %0A

Add chrooting test (requires vagrant environment)