- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
Latest commit
executable file
·26 lines (18 loc) · 444 Bytes
/
Copy pathtest.py
File metadata and controls
executable file
·26 lines (18 loc) · 444 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
importdemo
importsys
ifsys.version_info< (3,):
integer_types= (int, long,)
else:
integer_types= (int,)
deftest_echo():
msg='This is a simple message!'
echoed=demo.echo(msg)
asserttype(echoed) ==str
assertechoed==msg
deftest_now():
today=demo.now()
asserttype(today) ==dict
deftest_addition():
sum=demo.addition(5, 6)
asserttype(sum) ininteger_types
assertsum==11