aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-attrs/check.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-attrs/check.py')
-rw-r--r--testing/py3-attrs/check.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/py3-attrs/check.py b/testing/py3-attrs/check.py
new file mode 100644
index 0000000000..08af9829fb
--- /dev/null
+++ b/testing/py3-attrs/check.py
@@ -0,0 +1,10 @@
+import attr
+
+@attr.s
+class SomeClass(object):
+ a_number = attr.ib(default=42)
+ list_of_numbers = attr.ib(default=attr.Factory(list))
+
+a = SomeClass()
+assert a.a_number == 42
+assert isinstance(a.list_of_numbers, list)