Changeset 1792


Ignore:
Timestamp:
05/12/10 20:45:29 (4 years ago)
Author:
wehart
Message:

Fixes in tests due to recent changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pyutilib.workflow/trunk/pyutilib/workflow/tests/test_core.py

    r1790 r1792  
    1414    def __init__(self, *args, **kwds): 
    1515        pyutilib.workflow.Task.__init__(self, *args, **kwds) 
    16         self.inputs.declare('x','y') 
     16        self.inputs.declare('x') 
     17        self.inputs.declare('y') 
    1718        self.outputs.declare('z') 
    1819 
     
    182183        self.failUnlessEqual(str(A.inputs), """Task1-inputs: 
    183184    x = DirectConnection: from=(Task2 prev: [] next: [1] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])) 
    184     y = UnknownConnection: from=(Task0 prev: [] next: [] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])) 
     185    y = DirectConnection: from=(Task0 prev: [] next: [] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])) 
    185186Mode:  inputs 
    186187Owner: Task1 prev: [2] next: [] resources: []""") 
    187188        self.failUnlessEqual(str(A.outputs),  'Task1-outputs:\n    z = DirectConnection: from=(Task1 prev: [2] next: [] resources: []) to=(set([]))\nMode:  outputs\nOwner: Task1 prev: [2] next: [] resources: []') 
    188         self.failUnlessEqual(repr(A.inputs),"""InputConnections(x = DirectConnection: from=(Task2 prev: [] next: [1] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])), y = UnknownConnection: from=(Task0 prev: [] next: [] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])))""") 
     189        self.failUnlessEqual(repr(A.inputs),"""InputConnections(x = DirectConnection: from=(Task2 prev: [] next: [1] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])), y = DirectConnection: from=(Task0 prev: [] next: [] resources: []) to=(set([Task1 prev: [2] next: [] resources: []])))""") 
    189190 
    190191    def test4(self): 
Note: See TracChangeset for help on using the changeset viewer.