Ignore:
Timestamp:
05/15/06 12:59:17 (13 years ago)
Author:
tarmo
Message:

Merged renaming-branch to trunk. From now on, you need to rename
the checkout folder to Products/LeMill? (not Toolbox!) and create
new instances (old ones certainly won't work).
Closes #333, spent 1h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/testPiece.py

    r226 r236  
    1 # Copyright 2006 by the Toolbox Team (see AUTHORS) 
     1# Copyright 2006 by the LeMill Team (see AUTHORS) 
    22# 
    3 # This file is part of Calibrate Toolbox. 
     3# This file is part of LeMill. 
    44# 
    5 # Calibrate Toolbox is free software; you can redistribute it and/or modify 
     5# LeMill is free software; you can redistribute it and/or modify 
    66# it under the terms of the GNU General Public License as published by 
    77# the Free Software Foundation; either version 2 of the License, or 
    88# (at your option) any later version. 
    99# 
    10 # Calibrate Toolbox is distributed in the hope that it will be useful, 
     10# LeMill is distributed in the hope that it will be useful, 
    1111# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1212# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     
    1414# 
    1515# You should have received a copy of the GNU General Public License 
    16 # along with Calibrate Toolbox; if not, write to the Free Software 
     16# along with LeMill; if not, write to the Free Software 
    1717# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    1818 
     
    2727from Testing import ZopeTestCase 
    2828from Testing.ZopeTestCase.functional import Functional 
    29 from ToolboxTestCase import ToolboxTestCase 
    30 from Products.Toolbox.Piece import Piece, ERROR_NOT_BOTH 
     29from LeMillTestCase import LeMillTestCase 
     30from Products.LeMill.Piece import Piece, ERROR_NOT_BOTH 
    3131from Products.Archetypes.public import PrimaryFieldMarshaller 
    3232from StringIO import StringIO 
     
    3737auth=':'.join((portal_owner, default_password)) 
    3838 
    39 class TestPiece(ToolboxTestCase,Functional): 
     39class TestPiece(LeMillTestCase,Functional): 
    4040 
    4141    def afterSetUp(self): 
     
    5151        # will complain when non-files are used as image data. 
    5252        ob=self.construct('Piece', 'TestPiece7' ,self.folder) 
    53         file_text = open("../skins/toolbox/toolbox_banner.png","r").read() 
     53        file_text = open("../skins/lemill/lemill_banner.png","r").read() 
    5454        ob.edit(file=file_text, source=file_text) 
    5555        self.failUnlessEqual(ob.file.data, file_text, "File upload error") 
Note: See TracChangeset for help on using the changeset viewer.