tests: Add tests for attrtuple, and for more corner cases.

This commit is contained in:
Damien George
2015-04-22 16:52:03 +01:00
parent 956d765786
commit 1f9e2188a6
5 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# test attrtuple
# we can't test this type directly so we use sys.implementation object
import sys
t = sys.implementation
# test printing of attrtuple
print(str(t).find("version=") > 0)
# test read attr
print(isinstance(t.name, str))