Skip to content

Commit

Permalink
Add test for attrs.astuple
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Dec 15, 2021
1 parent b0d6a6d commit 4fd5c31
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_next_gen.py
Expand Up @@ -368,3 +368,13 @@ class D(B, C):
d = D()

assert d.x == d.xx()


class TestAsTuple:
def test_smoke(self):
"""
`attrs.astuple` only changes defaults, so we just call it and compare.
"""
inst = C("foo", 42)

assert attrs.astuple(inst) == _attr.astuple(inst)

0 comments on commit 4fd5c31

Please sign in to comment.