

def test_serialize_context(self):
    context = mock.Mock()
    self.ser.serialize_context(self)
    context.to_dict.assert_called_once_with()

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/test_rpc.py TestRequestContextSerializer.test_serialize_context/VarMisuse@24/28 `context`->`self`