def test_rm(self):
        single_file = self.files[0]
        entire_dir = self.dirs[1]
        # Remove a single file
        self.assertEqual(
            self.run_function('git.rm', [self.repo, single_file]),
            'rm \'' + single_file + '\''
        )
        # Remove an entire dir
        expected = '\n'.join(
            sorted(['rm \'' + os.path.join(entire_dir, x) + '\''
                    for x in self.files])
        )
        self.assertEqual(
            self.run_function('git.rm', [self.repo, entire_dir], opts='-r'),
            expected
        )
Cloning a ProductVersion clones its environments.
dataset/ETHPy150Open saltstack/salt/tests/integration/modules/git.py/GitModuleTest.test_rm--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_productversion.py/ProductVersionTest.test_clone_environments