

def test_deserialize_entity(self):
    self.mock_base.deserialize_entity.return_value = 'foo'
    deser_ent = self.ser.deserialize_entity('context', 'entity')
    self.mock_base.deserialize_entity.assert_called_once_with('context', 'entity')
    self.assertEqual('foo', deser_ent)

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