示例#1
0
    def runTest(self):
        # Convert KVForm to dict
        d = kvform.kvToDict(self.kvform)

        # make sure it parses to expected dict
        self.failUnlessEqual(self.dict, d)

        # Check to make sure we got the expected number of warnings
        self.checkWarnings(self.expected_warnings)

        # Convert back to KVForm and round-trip back to dict to make
        # sure that *** dict -> kv -> dict is identity. ***
        kv = kvform.dictToKV(d)
        d2 = kvform.kvToDict(kv)
        self.failUnlessEqual(d, d2)
示例#2
0
    def runTest(self):
        # Convert KVForm to dict
        d = kvform.kvToDict(self.kvform)

        # make sure it parses to expected dict
        self.failUnlessEqual(self.dict, d)

        # Check to make sure we got the expected number of warnings
        self.checkWarnings(self.expected_warnings)

        # Convert back to KVForm and round-trip back to dict to make
        # sure that *** dict -> kv -> dict is identity. ***
        kv = kvform.dictToKV(d)
        d2 = kvform.kvToDict(kv)
        self.failUnlessEqual(d, d2)
示例#3
0
 def toKVForm(self):
     """Generate a KVForm string that contains the parameters in
     this message. This will fail if the message contains arguments
     outside of the 'openid.' prefix.
     """
     return kvform.dictToKV(self.toArgs())
示例#4
0
 def toKVForm(self):
     """Generate a KVForm string that contains the parameters in
     this message. This will fail if the message contains arguments
     outside of the 'openid.' prefix.
     """
     return kvform.dictToKV(self.toArgs())