Exemplo n.º 1
0
    def test_delete_user(self):
        """
        Tests to delete a user
        """
        mock = MagicMock(return_value="ABC")
        with patch.object(drac, "__execute_cmd", mock):
            self.assertEqual(drac.delete_user("username", 1), "ABC")

        self.assertFalse(drac.delete_user("username", False))
Exemplo n.º 2
0
    def test_delete_user(self):
        '''
        Tests to delete a user
        '''
        mock = MagicMock(return_value='ABC')
        with patch.object(drac, '__execute_cmd', mock):
            self.assertEqual(drac.delete_user('username', 1), 'ABC')

        self.assertFalse(drac.delete_user('username', False))
Exemplo n.º 3
0
    def test_delete_user(self):
        '''
        Tests to delete a user
        '''
        mock = MagicMock(return_value='ABC')
        with patch.object(drac, '__execute_cmd', mock):
            self.assertEqual(drac.delete_user('username', 1), 'ABC')

        self.assertFalse(drac.delete_user('username', False))