14 lines
442 B
Python
14 lines
442 B
Python
from odoo.tests.common import TransactionCase
|
|
|
|
|
|
class TestSecurity(TransactionCase):
|
|
|
|
def test_base_user_access(self):
|
|
user = self.env['res.users'].create({
|
|
'name': 'Education User',
|
|
'login': 'edu_user_test_001',
|
|
'email': 'edu_user_test_001@example.com',
|
|
'group_ids': [(6, 0, [self.env.ref('education_base.group_education_base_user').id])],
|
|
})
|
|
self.assertTrue(user)
|