Esempio n. 1
0
 def test_delete_user_exists(self):
     '''
     Tests if the user exists or not
     '''
     self.assertTrue(mac_user.delete('foo'))
Esempio n. 2
0
 def test_delete_user_exists(self):
     '''
     Tests if the user exists or not
     '''
     with patch('salt.modules.mac_user.info', MagicMock(return_value={})):
         self.assertTrue(mac_user.delete('foo'))
Esempio n. 3
0
def test_delete_user_exists():
    """
    Tests if the user exists or not
    """
    with patch("salt.modules.mac_user.info", MagicMock(return_value={})):
        assert mac_user.delete("foo")
Esempio n. 4
0
 def test_delete_user_exists(self):
     '''
     Tests if the user exists or not
     '''
     self.assertTrue(mac_user.delete('foo'))