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)
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)