

@mock.patch.object(context, 'RequestContext')
def test_deserialize_context(self, mock_req):
    self.ser.deserialize_context('context')
    mock_req.from_dict.assert_called_once_with('context')

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/test_rpc.py TestRequestContextSerializer.test_deserialize_context/original