'check definition of computed fields'

def test_10_computed(self):

    field = self.env['test_new_api.message']._fields['size']
    self.assertFalse(field.store)
    self.assertTrue(field.readonly)
    field = self.env['test_new_api.message']._fields['name']
    self.assertTrue(field.store)
    self.assertTrue(field.readonly)
