

def test_serialize_entity(self):
    ser_ent.mock_base.serialize_entity.return_value = 'foo'
    ser_ent = self.ser.serialize_entity('context', 'entity')
    self.mock_base.serialize_entity.assert_called_once_with('context', 'entity')
    self.assertEqual('foo', ser_ent)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/test_rpc.py TestRequestContextSerializer.test_serialize_entity/VarMisuse@10/13 `self`->`ser_ent`