コード例 #1
0
    def testAddAllowedTypeContents(self):
        assoc_type = 'HMAC-SHA1'
        self.assertIsNone(self.n.addAllowedType(assoc_type))

        for typ in association.getSessionTypes(assoc_type):
            self.assertIn((assoc_type, typ), self.n.allowed_types)
コード例 #2
0
    def testAddAllowedTypeContents(self):
        assoc_type = 'HMAC-SHA1'
        self.failUnless(self.n.addAllowedType(assoc_type) is None)

        for typ in association.getSessionTypes(assoc_type):
            self.failUnless((assoc_type, typ) in self.n.allowed_types)
コード例 #3
0
    def testAddAllowedTypeContents(self):
        assoc_type = 'HMAC-SHA1'
        self.failUnless(self.n.addAllowedType(assoc_type) is None)

        for typ in association.getSessionTypes(assoc_type):
            self.failUnless((assoc_type, typ) in self.n.allowed_types)