

def test_reset(self):
    with mock.patch('nova.compute.rpcapi.ComputeAPI') as mock_rpc:
        old_rpcapi = self.console.compute_rpcapi
        self.console.reset()
        mock_rpc.assert_called_once_with()
        self.assertNotEqual(old_rpcapi, self.console.compute_rpcapi)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/console/test_console.py ConsoleTestCase.test_reset/original