mock.call.remove_fsip

Here are the examples of the python api mock.call.remove_fsip taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: manila Source File: test_hpe_3par_driver.py
    def test_teardown_server(self):
        """Test tear down server"""

        self.init_driver()

        server_details = {
            'ip': constants.EXPECTED_IP_10203040,
            'fpg': constants.EXPECTED_FPG,
            'vfs': constants.EXPECTED_VFS,
        }

        self.driver._teardown_server(server_details)

        expected_calls = [
            mock.call.remove_fsip(constants.EXPECTED_IP_10203040,
                                  constants.EXPECTED_FPG,
                                  constants.EXPECTED_VFS)
        ]
        self.mock_mediator.assert_has_calls(expected_calls)