Ignore:
Timestamp:
15/01/10 16:26:13 (10 years ago)
Author:
pnorton
Message:

First attempt at getting the buildplot action to work.

Location:
qesdi/graphplotter/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qesdi/graphplotter/trunk

    • Property svn:ignore
      •  

        old new  
        11.pydevproject 
        22.project 
         3Paste-1.7.2-py2.5.egg 
         4PasteDeploy-1.3.3-py2.5.egg 
         5PasteScript-1.7.3-py2.5.egg 
  • qesdi/graphplotter/trunk/graphplotter/tests/unit/test_plot_builder.py

    r6311 r6313  
    5959         
    6060        assert img == 'returned image' 
    61          
    62         print mockDataReader.called 
    63         print mockDataReader.call_args 
    64          
     61                 
    6562        expectedSelection = {'scenario':'B1', 
    6663                             'model':'isam', 
    6764                             'sensitivity':'High'} 
    6865         
    69         expectedArgs = (self.config['path'], self.params['variable'], self.params['axis'], 
     66        expectedArgs =  (self.params['variable'], self.params['axis'], 
    7067                        expectedSelection, self.config['axisLookup']) 
    7168         
    72         print "mockDataReader.call_args[0]", mockDataReader.call_args[0] 
    73         print "expectedArgs", expectedArgs 
    7469         
    7570        assert mockDataReader.called 
    76         assert mockDataReader.call_args[0] == expectedArgs 
     71        assert mockDataReader.call_args[0] == (self.config['path'],) 
    7772         
     73        assert mockDataReader().getData.called 
     74        assert mockDataReader().getData.call_args[0] == expectedArgs 
     75         
Note: See TracChangeset for help on using the changeset viewer.