Exemple #1
0
 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"))
Exemple #2
0
 def test_check_site_enabled_false(self):
     '''
     Test if the specific Site symlink is enabled.
     '''
     self.assertFalse(deb_apache.check_site_enabled('saltstack.com'))
Exemple #3
0
 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"))
Exemple #4
0
 def test_check_site_enabled_default(self):
     '''
     Test if the specific Site symlink is enabled.
     '''
     self.assertTrue(deb_apache.check_site_enabled('default'))
Exemple #5
0
 def test_check_site_enabled_false(self):
     '''
     Test if the specific Site symlink is enabled.
     '''
     self.assertFalse(deb_apache.check_site_enabled('saltstack.com'))
Exemple #6
0
 def test_check_site_enabled_default(self):
     '''
     Test if the specific Site symlink is enabled.
     '''
     self.assertTrue(deb_apache.check_site_enabled('default'))
Exemple #7
0
 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'))
Exemple #8
0
 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'))