예제 #1
0
    def test_argumentCollection(self):
        class A(object):
            """
            Test class with correct getArgs implementation.
            """
            def getArgs(self):
                return {u'foo': 1}

        class B(A):
            """
            Another test getArgs implementor.
            """
            def getArgs(self):
                return {u'bar': 2}

        self.assertEquals(getArgsDict(A()), {u'foo': 1})
        self.assertEquals(getArgsDict(B()), {u'foo': 1, u'bar': 2})
예제 #2
0
    def test_argumentCollection(self):
        class A(object):
            """
            Test class with correct getArgs implementation.
            """
            def getArgs(self):
                return {u'foo': 1}

        class B(A):
            """
            Another test getArgs implementor.
            """
            def getArgs(self):
                return {u'bar': 2}

        self.assertEquals(getArgsDict(A()), {u'foo': 1})
        self.assertEquals(getArgsDict(B()), {u'foo': 1, u'bar': 2})
예제 #3
0
파일: view.py 프로젝트: jonathanj/methanal
 def getInitialArguments(self):
     return [getArgsDict(self)]
예제 #4
0
파일: view.py 프로젝트: jonathanj/methanal
 def getInitialArguments(self):
     args = super(LiveForm, self).getInitialArguments()
     return [getArgsDict(self)] + args
예제 #5
0
파일: view.py 프로젝트: fusionapp/methanal
 def getInitialArguments(self):
     return [getArgsDict(self)]
예제 #6
0
파일: view.py 프로젝트: fusionapp/methanal
 def getInitialArguments(self):
     args = super(LiveForm, self).getInitialArguments()
     return [getArgsDict(self)] + args