Changeset 468 in main


Ignore:
Timestamp:
11/10/11 15:09:24 (8 years ago)
Author:
pcosquer
Message:

test: add test cases with a reference which contains several special characters ( éœ)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/tests/views.py

    r460 r468  
    4747    CONTROLLER = PartController 
    4848    DATA = {} 
     49    REFERENCE = "Part1" 
    4950 
    5051    def setUp(self): 
    5152        super(CommonViewTest, self).setUp() 
    5253        self.client.post("/login/", {'username' : 'user', 'password' : 'password'}) 
    53         self.controller = self.CONTROLLER.create("Part1", self.TYPE, "a", 
     54        self.controller = self.CONTROLLER.create(self.REFERENCE, self.TYPE, "a", 
    5455                                                 self.user, self.DATA) 
    5556        self.base_url = "/object/%s/%s/%s/" % (self.controller.type, 
     
    778779        self.assertEqual(response.template.name, "error.html") 
    779780 
     781class SpecialCharactersPartViewTestCase(PartViewTestCase): 
     782    REFERENCE = u"Pa *-\xc5\x93\xc3\xa9'" 
     783 
     784 
     785class SpecialCharactersDocumentViewTestCase(DocumentViewTestCase): 
     786    REFERENCE = u"Pa *-\xc5\x93\xc3\xa9'" 
     787 
Note: See TracChangeset for help on using the changeset viewer.