Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # --------- tasks/multiply.py ---------------
- def mult_two(a, b):
- return a * b
- # ----------- tests/test_multiply.py --------------
- from tasks.multiply import mult_two
- def test_multiply():
- assert mult_two(3, 4) == 12
- assert mult_two(3, 2) == 6
- assert mult_two(1, 0) == 0
- assert mult_two(4, 5) == 20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement