Пример #1
0
 def test_ice_admin_create_user(self):
     user = UserFactory()
     admin_ice = AdminRegistry()
     with admin_ice.login():
         created_id = admin_ice.create_user(user)
         found_id = admin_ice.get_user_id(user)
         assert created_id == found_id
Пример #2
0
 def test_ice_admin_create_user_twice(self):
     admin_ice = AdminRegistry()
     with admin_ice.login(), self.assertRaises(RegistryError):
         admin_ice.create_user(self.admin_ice_user)