

@istest
def ensures_site_is_available_from_template_and_options(self):
    with self.execute_mock(), self.mock_role_method('update_file') as update_file, update_file.mock_role_method('remote_symlink'):
        self.role.create_site('bar-website', template='/local/path/to/bar-website', options={
            'foo': 'Baz',
        })
        update_file.assert_called_with('/local/path/to/bar-website', '/etc/apache2/sites-available/bar-website', options={
            'foo': 'Baz',
        }, sudo=True)
        self.assertTrue(self.role.must_restart)

dataset/ETHPy150Open python-provy/provy/tests/unit/more/debian/web/test_apache.py ApacheRoleTest.ensures_site_is_available_from_template_and_options/VarMisuse@29/48 `self`->`update_file`