Home
last modified time | relevance | path

Searched refs:assertRaisesWith (Results 1 – 25 of 27) sorted by relevance

12

/dports/security/py-stem/stem-1.8.0/test/integ/client/
H A Dconnection.py20 …self.assertRaisesWith(ValueError, "'nope' isn't an IPv4 or IPv6 address", Relay.connect, 'nope', 8…
21 self.assertRaisesWith(ValueError, "'-54' isn't a valid port", Relay.connect, '127.0.0.1', -54)
22 …self.assertRaisesWith(ValueError, "Connection can't be established without a link protocol.", Rela…
29 …self.assertRaisesWith(stem.SocketError, "Failed to connect to 127.0.0.1:1587. Maybe it isn't an OR…
34 …self.assertRaisesWith(stem.SocketError, "Failed to SSL authenticate to 127.0.0.1:1111. Maybe it is…
42 …self.assertRaisesWith(stem.SocketError, 'Unable to establish a common link protocol with 127.0.0.1…
/dports/security/py-stem/stem-1.8.0/test/unit/descriptor/
H A Dcertificate.py130 self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, '')
133 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, 'AQQABhtZAaW2GoBED1IjY3…
142 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(version = 2…
151 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(cert_type =…
154 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(cert_type =…
157 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(cert_type =…
165 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(extension_d…
168 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(extension_d…
176 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(extension_d…
184 …self.assertRaisesWith(ValueError, exc_msg, Ed25519Certificate.from_base64, certificate(extension_d…
[all …]
H A Ddescriptor.py39 …self.assertRaisesWith(TypeError, "Unable to determine the descriptor's type. filename: '<undefined…
51 …self.assertRaisesWith(ValueError, "Descriptor.from_str() expected a single descriptor, but had 2 i…
H A Drouter_status_entry.py97 …self.assertRaisesWith(NotImplementedError, 'Please use the from_str() method from RouterStatusEntr…
98 …self.assertRaisesWith(ValueError, "Router status entries don't have their own @type annotation. As…
186 …self.assertRaisesWith(NotImplementedError, 'Signing of RouterStatusEntryV2 not implemented', Route…
187 …self.assertRaisesWith(NotImplementedError, 'Signing of RouterStatusEntryV3 not implemented', Route…
188 …self.assertRaisesWith(NotImplementedError, 'Signing of RouterStatusEntryMicroV3 not implemented', …
H A Dbandwidth_file.py299 …self.assertRaisesWith(ValueError, 'Headers require BandwidthFile version 1.1 or later', BandwidthF…
310 …self.assertRaisesWith(ValueError, "The 'version' header must be in the second position", Bandwidth…
347 self.assertRaisesWith(ValueError, expected_exc, BandwidthFile.create, {'timestamp': value})
H A Dmicrodescriptor.py105 …self.assertRaisesWith(NotImplementedError, 'Signing of Microdescriptor not implemented', Microdesc…
215 self.assertRaisesWith(ValueError, exc_msg, Microdescriptor, desc_text, validate = True)
H A Dhidden_service_v3.py235 …self.assertRaisesWith(ValueError, "'boom.onion' isn't a valid hidden service v3 address", HiddenSe…
236 …self.assertRaisesWith(ValueError, 'Bad checksum (expected def7 but was 842e)', HiddenServiceDescri…
295 self.assertRaisesWith(ImportError, 'cryptography module unavailable', intro_point.onion_key)
H A Dserver_descriptor.py280 …self.assertRaisesWith(NotImplementedError, 'Signing of BridgeDescriptor not implemented', BridgeDe…
289 self.assertRaisesWith(ValueError, exc_msg, desc_without_fingerprint.make_router_status_entry)
554 …self.assertRaisesWith(NotImplementedError, 'Server descriptor digests are only available in sha1 a…
555 …self.assertRaisesWith(ValueError, 'Digest encodings should be among our DigestEncoding enumeration…
826 self.assertRaisesWith(ValueError, exc_msg, RelayDescriptor.create, {'proto': 'Desc Link=1-4'})
834 … self.assertRaisesWith(ValueError, exc_msg, RelayDescriptor.create, {'proto': 'Desc=hi Link=1-4'})
H A Dextrainfo_descriptor.py148 …self.assertRaisesWith(NotImplementedError, 'Signing of BridgeExtraInfoDescriptor not implemented',…
203 self.assertRaisesWith(ValueError, exc_msg, next, desc_generator)
H A Dhidden_service_v2.py282 …self.assertRaisesWith(NotImplementedError, 'Signing of HiddenServiceDescriptorV2 not implemented',…
/dports/security/py-stem/stem-1.8.0/test/unit/client/
H A Dcell.py117 …self.assertRaisesWith(NotImplementedError, 'Packing not yet implemented for UNKNOWN cells', cell_i…
118 …self.assertRaisesWith(NotImplementedError, 'Unpacking not yet implemented for UNKNOWN cells', cell…
132 self.assertRaisesWith(ValueError, expected_message, instance.pack, 2)
137 …self.assertRaisesWith(ValueError, 'PADDING cells should not specify a circuit identifier', Padding…
141 …self.assertRaisesWith(ValueError, 'RELAY cells require a circuit identifier', RelayCell._pack, 5, …
145 self.assertRaisesWith(ValueError, expected_msg, RelayCell._pack, 5, b'', circ_id = circ_id)
229 …self.assertRaisesWith(ValueError, 'RELAY cell said it had 65535 bytes of data, but only had 498', …
260 …self.assertRaisesWith(ValueError, 'Key material should be 20 bytes, but was 3', CreateFastCell, 5,…
276 …self.assertRaisesWith(ValueError, 'Key material should be 20 bytes, but was 3', CreateFastCell, 5,…
315 … self.assertRaisesWith(ValueError, 'VPaddingCell size (-15) cannot be negative', VPaddingCell, -15)
[all …]
H A Dsize.py27 …self.assertRaisesWith(ValueError, 'Size.pack encodes an integer, but was a str', Size.CHAR.pack, '…
28 …self.assertRaisesWith(ValueError, 'Packed values must be positive (attempted to pack -1 as a CHAR)…
42 …self.assertRaisesWith(ValueError, "'\\x00\\x12' is the wrong size for a CHAR field", Size.CHAR.unp…
50 self.assertRaisesWith(ValueError, "'' is the wrong size for a CHAR field", Size.CHAR.pop, '')
51 …self.assertRaisesWith(ValueError, "'\\x12' is the wrong size for a SHORT field", Size.SHORT.pop, '…
H A Daddress.py19 …self.assertRaisesWith(ValueError, "Invalid enumeration 'boom', options are HOSTNAME, IPv4, IPv6, E…
44 …self.assertRaisesWith(ValueError, "Packed IPv4 addresses should be four bytes, but was: '\\x7f\\x0…
45 …self.assertRaisesWith(ValueError, "Packed IPv6 addresses should be sixteen bytes, but was: '\\x7f\…
46 self.assertRaisesWith(ValueError, "'nope' isn't an IPv4 or IPv6 address", Address, 'nope')
H A Dlink_specifier.py67 …self.assertRaisesWith(ValueError, 'Link specifier should have 32 bytes, but only had 7 remaining',…
/dports/security/py-stem/stem-1.8.0/test/unit/
H A Dmanual.py110 …self.assertRaisesWith(sqlite3.OperationalError, 'near "hello": syntax error', stem.manual.query, '…
245 self.assertRaisesWith(ValueError, exc_msg, stem.manual.download_man_page)
250 self.assertRaisesWith(IOError, exc_msg, stem.manual.download_man_page, '/tmp/no_such_file')
258 self.assertRaisesWith(IOError, exc_msg, stem.manual.download_man_page, '/tmp/no_such_file')
267 …self.assertRaisesWith(IOError, exc_msg, stem.manual.download_man_page, '/tmp/no_such_file', url = …
277 …self.assertRaisesWith(IOError, exc_msg, stem.manual.download_man_page, '/tmp/no_such_file', url = …
306 self.assertRaisesWith(IOError, exc_msg, stem.manual.Manual.from_man)
H A Dversion.py75 …self.assertRaisesWith(IOError, "'0.2.blah (git-73ff13ab3cc9570d)' isn't a properly formatted tor v…
/dports/security/py-stem/stem-1.8.0/test/unit/control/
H A Dcontroller.py76 …self.assertRaisesWith(stem.OperationFailed, 'Address unknown', self.controller.get_info, 'address')
82 …self.assertRaisesWith(stem.OperationFailed, 'Address unknown', self.controller.get_info, 'address')
88 …self.assertRaisesWith(stem.OperationFailed, 'Address unknown', self.controller.get_info, 'address')
106 …self.assertRaisesWith(stem.OperationFailed, 'Not running in server mode', self.controller.get_info…
112 …self.assertRaisesWith(stem.OperationFailed, 'Not running in server mode', self.controller.get_info…
118 …self.assertRaisesWith(stem.OperationFailed, 'Not running in server mode', self.controller.get_info…
579 …self.assertRaisesWith(ValueError, "'GETINFO uptime' did not provide a valid numeric response: abc"…
604 self.assertRaisesWith(ControllerError, exc_msg, self.controller.get_network_status)
627 …self.assertRaisesWith(DescriptorUnavailable, exc_msg, self.controller.get_network_status, '5AC9C5A…
760 …self.assertRaisesWith(stem.Timeout, 'Reached our 0.1 second timeout', self.controller.get_hidden_s…
/dports/security/py-stem/stem-1.8.0/test/unit/exit_policy/
H A Drule.py386 self.assertRaisesWith(ValueError, exc_msg, ExitPolicyRule, 'accept6 192.168.0.1/0')
389 …self.assertRaisesWith(ValueError, exc_msg, ExitPolicyRule, 'reject6 [2a00:1450:4001:081e:0000:0000…
/dports/security/py-stem/stem-1.8.0/test/unit/descriptor/networkstatus/
H A Ddocument_v2.py110 …self.assertRaisesWith(NotImplementedError, 'Signing of NetworkStatusDocumentV2 not implemented', N…
H A Dkey_certificate.py145 …self.assertRaisesWith(NotImplementedError, 'Signing of KeyCertificate not implemented', KeyCertifi…
H A Ddirectory_authority.py57 …self.assertRaisesWith(NotImplementedError, 'Signing of DirectoryAuthority not implemented', Direct…
H A Ddocument_v3.py372 …self.assertRaisesWith(NotImplementedError, 'Signing of NetworkStatusDocumentV3 not implemented', N…
418 …self.assertRaisesWith(ValueError, 'Network Status Document has 0 valid signatures out of 2 total, …
1281 self.assertRaisesWith(ValueError, expected_exception, DirectoryAuthority, content, True)
/dports/security/py-stem/stem-1.8.0/test/integ/util/
H A Dsystem.py124 self.assertRaisesWith(RuntimeError, 'hello world', task.join)
553 …self.assertRaisesWith(stem.util.system.CallTimeoutError, "Process didn't finish after 0.0 seconds"…
/dports/security/py-stem/stem-1.8.0/test/unit/util/
H A Dproc.py189 self.assertRaisesWith(IOError, exc_msg, proc.file_descriptors_used, 2118)
/dports/security/py-stem/stem-1.8.0/test/integ/control/
H A Dcontroller.py574 …self.assertRaisesWith(stem.ProtocolError, exc_msg, controller.create_ephemeral_hidden_service, por…
698 …self.assertRaisesWith(stem.ProtocolError, exc_msg, controller.create_ephemeral_hidden_service, 456…
853 …self.assertRaisesWith(stem.InvalidArguments, "DisableAllSwap cannot be changed while tor's running…
854 …self.assertRaisesWith(stem.InvalidArguments, "DisableAllSwap, User cannot be changed while tor's r…
1436 …self.assertRaisesWith(stem.DescriptorUnavailable, exc_msg, controller.get_hidden_service_descripto…

12