Changeset 846 in main for branches


Ignore:
Timestamp:
03/06/12 16:51:07 (8 years ago)
Author:
agalech
Message:

Solved test test_S_unlock_N_lockedcheckout_S

Location:
branches/3D/openPLM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3D/openPLM/document3D/views.py

    r842 r846  
    248248                    extra_errors="The Document3D associated with the file STEP to decompose has been modified by another user while the forms were refilled:Please restart the process" 
    249249        else: 
    250                     print last_time_modification.errors  
     250 
    251251                    extra_errors="Mistake reading of the last modification of the document, please restart the task"                                           
    252252 
  • branches/3D/openPLM/plmapp/tests/gestion_document_native.py

    r817 r846  
    22from openPLM.plmapp.controllers.document import DocumentController 
    33from openPLM.plmapp.tests.base import BaseTestCase 
    4  
     4from openPLM.plmapp.exceptions import LockError 
    55 
    66class DocNativeTestCase(BaseTestCase): 
     
    3737 
    3838        self.document.lock(native) 
    39         self.assertRaises(ValueError, self.document.lock, standar) 
     39        self.assertRaises(LockError, self.document.lock, standar) 
    4040        self.assertEqual(native.locked, True) 
    4141        self.assertFalse(standar.locked) 
Note: See TracChangeset for help on using the changeset viewer.