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)
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)