Home
last modified time | relevance | path

Searched refs:any2i_one (Results 1 – 3 of 3) sorted by relevance

/external/scapy/test/
Dfields.uts752 = EnumField.any2i_one
755 assert(f.any2i_one(None, 'Foo') == 0)
756 assert(f.any2i_one(None, 'Bar') == 1)
757 assert(f.any2i_one(None, 2) == 2)
758 expect_exception(KeyError, 'f.any2i_one(None, "Baz")')
760 assert(rf.any2i_one(None, 'Foo') == 0)
761 assert(rf.any2i_one(None, 'Bar') == 1)
762 assert(rf.any2i_one(None, 2) == 2)
763 expect_exception(KeyError, 'rf.any2i_one(None, "Baz")')
765 assert(lf.any2i_one(None, 'Foo') == 0)
[all …]
/external/scapy/scapy/
Dfields.py950 def any2i_one(self, pkt, x): member in _EnumField
972 return [self.any2i_one(pkt, z) for z in x]
974 return self.any2i_one(pkt,x)
992 def any2i_one(self, pkt, x): member in CharEnumField
1065 def any2i_one(self, pkt, x): member in _MultiEnumField
/external/scapy/scapy/layers/tls/
Dhandshake.py146 def any2i_one(self, pkt, x): member in _CipherSuitesField
163 return [self.any2i_one(pkt, z) for z in x]
196 def any2i_one(self, pkt, x): member in _CompressionMethodsField