Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 13 lines (9 sloc) 0.25 kB
f33430f @dag sampletests assert_hook
authored
1 from attest import Tests, assert_hook
37cb0ac @dag Make sampletests more interesting
authored
2
8948162 @dag New sampletests
authored
3 samples = Tests()
cf816e7 @dag FORMATTERS; give sampletests command line options
authored
4
8948162 @dag New sampletests
authored
5 @samples.test
6 def number_and_sequence():
7 number = 2 + 3
8 sequence = [1, 2, 3]
9 assert number in sequence and isinstance(number, float)
cf816e7 @dag FORMATTERS; give sampletests command line options
authored
10
8948162 @dag New sampletests
authored
11 if __name__ == '__main__':
12 samples.main()
Something went wrong with that request. Please try again.