def test_packet_ldap_00_simple(self): packet = Packet.from_line( "0.0\t06\t1\t2\t1\tldap\t0\tbindRequest" "\t\t\t\t\t0\tsimple\t") self.assertTrue(p.packet_ldap_0(packet, self.conversation, self. context))
def test_packet_ldap_00_sasl(self): packet = Packet.from_line( "0.0\t06\t1\t2\t1\tldap\t0\tbindRequest" "\t\t\t\t\t3\tsasl\t1.3.6.1.5.5.2") self.assertTrue(p.packet_ldap_0(packet, self.conversation, self. context))