

@istest
def ensures_that_a_website_is_enabled(self):
    with self.mock_role_method('remote_symlink') as remote_symlink:
        self.role.ensure_site_enabled('bar-website')
        remote_symlink.assert_called_with(from_file='/etc/apache2/sites-available/bar-website', to_file='/etc/apache2/sites-enabled/bar-website', sudo=True)
        self.assertTrue(self.role.must_restart)

dataset/ETHPy150Open python-provy/provy/tests/unit/more/debian/web/test_apache.py ApacheRoleTest.ensures_that_a_website_is_enabled/original