def test_serialize_entity(self):
    self.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)
def test_serialize_entity(self):
    self.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)