

@istest
def ensures_that_a_website_is_disabled(self):
    with self.mock_role_method('remove_file') as remove_file:
        self.role.ensure_site_disabled('bar-website')
        remove_file.assert_called_with('/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_disabled/original