Ignore:
Timestamp:
Nov 19, 2010 11:30:54 AM (13 years ago)
Author:
fenix
Message:

fixed tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.analytics/trunk/quintagroup/analytics/tests.py

    r3042 r3043  
    99 
    1010from Products.PloneTestCase import PloneTestCase as ptc 
    11 from Products.PloneTestCase.version import PLONE33 
     11from Products.PloneTestCase.version import PLONE40 
    1212from Products.PloneTestCase import setup as ptc_setup 
    1313from Products.PloneTestCase.layer import PloneSite 
     
    211211        """ This test verifies creation of chart image tag.""" 
    212212        plone33chart_tag = \ 
    213           """<imgsrc="http://chart.apis.google.com/chart?chxt=y&amp; 
    214              chds=0,57&amp;chd=t:19.0,18.0,17.0,16.0,15.0,14.0,13.0, 
    215              12.0,11.0,10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0, 
    216              11.0,10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0,11.0, 
    217              10.0|0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0|0.0,0.0, 
    218              0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0&amp;chxr=0,0,57&amp; 
    219              chco=669933,cc9966,993300,ff6633,e8e4e3,a9a486,dcb57e, 
    220              ffcc99,996633,333300,00ff00&amp;chl=user9|user8| 
    221              user7|user6|user5|user4|user3|user2|user1|user0&amp; 
    222              chbh=a,10,0&amp;chs=800x375&amp;cht=bvs&amp; 
    223              chtt=Content+ownership+by+type&amp;chdl=Folder| 
    224              Document|Event|Large+Plone+Folder|Topic&amp;chdlp=b"/>""" 
     213          """<imgsrc="http://chart.apis.google.com/chart?chxt=y&amp;chds=0, 
     214             57&amp;chd=t:19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0,11.0, 
     215             10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0,11.0,10.0| 
     216             19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0,11.0,10.0|0.0, 
     217             0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0|0.0,0.0,0.0,0.0, 
     218             0.0,0.0,0.0,0.0,0.0,0.0&amp;chxr=0,0,57&amp;chco=669933,cc9966, 
     219             993300,ff6633,e8e4e3,a9a486,dcb57e,ffcc99,996633,333300,00ff00&amp; 
     220             chl=user9|user8|user7|user6|user5|user4|user3|user2|user1| 
     221             user0&amp;chbh=a,10,0&amp;chs=800x375&amp;cht=bvs&amp; 
     222             chtt=Content+ownership+by+type&amp;chdl=Folder|Document|Event 
     223             |Large+Plone+Folder|Topic&amp;chdlp=b"/>""" 
    225224        plone4chart_tag = \ 
    226225          """<img src="http://chart.apis.google.com/chart?chxt=y&amp; 
     
    235234             chtt=Content+ownership+by+type&amp;chdl=Folder|Document| 
    236235             Event|Topic&amp;chdlp=b" />""" 
    237         chart_tag = PLONE33 and plone33chart_tag or plone4chart_tag 
     236        chart_tag = plone4chart_tag 
     237        if not PLONE40: 
     238            chart_tag = plone33chart_tag 
    238239 
    239240        self.loginAsPortalOwner() 
     
    358359             No+workflow&amp;chdlp=b"/>""" 
    359360        plone4chart_tag = \ 
    360           """<img src="http://chart.apis.google.com/chart?chxt=y&amp; 
    361              chds=0,57&amp;chd=t:19.0,18.0,17.0,16.0,15.0,14.0, 
    362              13.0,12.0,11.0,10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0, 
    363              12.0,11.0,10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0, 
    364              11.0,10.0|0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0&amp; 
    365              chxr=0,0,57&amp;chco=669933,cc9966,993300,ff6633,e8e4e3, 
    366              a9a486,dcb57e,ffcc99,996633,333300,00ff00&amp;chl=user9| 
    367              user8|user7|user6|user5|user4|user3|user2|user1|user0&amp; 
     361          """<imgsrc="http://chart.apis.google.com/chart?chxt=y&amp; 
     362             chds=0,159&amp;chd=t:156.0,145.0,145.0,0.0|3.0,1.0,0.0, 
     363             3.0|0.0,0.0,0.0,0.0&amp;chxr=0,0,159&amp;chco=669933, 
     364             cc9966,993300,ff6633,e8e4e3,a9a486,dcb57e,ffcc99,996633, 
     365             333300,00ff00&amp;chl=Folder|Document|Event|Topic&amp; 
    368366             chbh=a,10,0&amp;chs=800x375&amp;cht=bvs&amp; 
    369              chtt=Content+ownership+by+type&amp;chdl=Folder|Document| 
    370              Event|Topic&amp;chdlp=b" />""" 
    371         chart_tag = PLONE33 and plone33chart_tag or plone4chart_tag 
     367             chtt=Content+type+by+state&amp;chdl=private|published| 
     368             No+workflow&amp;chdlp=b"/>""" 
     369 
     370        chart_tag = plone4chart_tag 
     371        if not PLONE40: 
     372            chart_tag = plone33chart_tag 
    372373 
    373374        self.loginAsPortalOwner() 
Note: See TracChangeset for help on using the changeset viewer.