mirror of
https://github.com/donnemartin/interactive-coding-challenges
synced 2026-01-11 20:08:04 +00:00
Added template notebooks.
This commit is contained in:
17
templates/test_foo.py
Normal file
17
templates/test_foo.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from nose.tools import assert_equal
|
||||
|
||||
|
||||
class TestFoo(object):
|
||||
|
||||
def test_foo(self):
|
||||
assert_equal(foo(None), None)
|
||||
assert_equal(foo(0), 0)
|
||||
assert_equal(foo('bar'), 'bar')
|
||||
print('Success: test_foo')
|
||||
|
||||
def main():
|
||||
test = TestFoo()
|
||||
test.test_foo()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user