def test_check_site_enabled_false(self): """ Test if the specific Site symlink is enabled. """ with patch("os.path.islink", MagicMock(return_value=False)): self.assertFalse(deb_apache.check_site_enabled("saltstack.com"))
def test_check_site_enabled_false(self): ''' Test if the specific Site symlink is enabled. ''' self.assertFalse(deb_apache.check_site_enabled('saltstack.com'))
def test_check_site_enabled_default(self): """ Test if the specific Site symlink is enabled. """ with patch("os.path.islink", MagicMock(side_effect=[False, True])): self.assertTrue(deb_apache.check_site_enabled("default"))
def test_check_site_enabled_default(self): ''' Test if the specific Site symlink is enabled. ''' self.assertTrue(deb_apache.check_site_enabled('default'))
def test_check_site_enabled_false(self): ''' Test if the specific Site symlink is enabled. ''' with patch('os.path.islink', MagicMock(return_value=False)): self.assertFalse(deb_apache.check_site_enabled('saltstack.com'))
def test_check_site_enabled_default(self): ''' Test if the specific Site symlink is enabled. ''' with patch('os.path.islink', MagicMock(side_effect=[False, True])): self.assertTrue(deb_apache.check_site_enabled('default'))