Browse Source
Merge branch '8.0-website_mail_qweb' of github.com:hbrunn/social into 8.0-website_mail_qweb
pull/163/head
Holger Brunn
7 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
10 additions and
0 deletions
-
website_mail_qweb/tests/test_website_mail_qweb.py
|
@ -18,3 +18,13 @@ class TestWebsiteMailQweb(HttpCase): |
|
|
record = UnquoteRecordset(self.env['res.partner'].new(), 'object') |
|
|
record = UnquoteRecordset(self.env['res.partner'].new(), 'object') |
|
|
self.assertEqual(record.name, 'object.name') |
|
|
self.assertEqual(record.name, 'object.name') |
|
|
self.assertEqual(record.parent_id.name, 'object.parent_id.name') |
|
|
self.assertEqual(record.parent_id.name, 'object.parent_id.name') |
|
|
|
|
|
self.assertEqual(record.id, 42) |
|
|
|
|
|
self.assertEqual( |
|
|
|
|
|
record.create_date, |
|
|
|
|
|
self.env['res.partner']._fields['create_date'].null(self.env) |
|
|
|
|
|
) |
|
|
|
|
|
self.assertEqual( |
|
|
|
|
|
record[:1]['create_date'], |
|
|
|
|
|
self.env['res.partner']._fields['create_date'].null(self.env) |
|
|
|
|
|
) |
|
|
|
|
|
self.assertEqual(record._fields, self.env['res.partner']._fields) |