Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F1770
Unit_testing_with_pytest
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
dereckson
Apr 11 2015, 15:17
2015-04-11 15:17:31 (UTC+0)
Size
237 B
Referenced Files
None
Subscribers
None
Unit_testing_with_pytest
View Options
def add(a, b):
"""Adds two numbers."""
return a + b
def test_add():
"""Tests add method."""
assert add(0, 0) == 0
assert add(2, 0) == 2
assert add(0, 2) == 2
assert add(3, 4) == 7
assert add(-3, 2) == -1
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1742
Default Alt Text
Unit_testing_with_pytest (237 B)
Attached To
Mode
P58 Unit testing with pytest
Attached
Detach File
Event Timeline
Log In to Comment