We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a47aaa commit 4b76630Copy full SHA for 4b76630
tests/hazmat/asn1/test_api.py
@@ -239,3 +239,13 @@ def test_fields_of_variant_type(self) -> None:
239
)
240
opt = declarative_asn1.Type.Option(ann_type)
241
assert opt._0 == ann_type
242
+
243
+ def test_fields_of_variant_encoding(self) -> None:
244
+ from cryptography.hazmat.bindings._rust import declarative_asn1
245
246
+ # Needed for coverage of the `_0`, `_1`, etc fields generated
247
+ # for tuple enum variants
248
+ implicit = declarative_asn1.Encoding.Implicit(0)
249
+ explicit = declarative_asn1.Encoding.Explicit(0)
250
+ assert implicit._0 == 0
251
+ assert explicit._0 == 0
0 commit comments