Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pytest
- from . import sample_calculator_program as calc
- def test_add():
- A,B = 10,20
- assert calc.add(A,B) == 30
- A,B = 10.2,20.3
- assert calc.add(A,B) == 30.5
- A,B = "Chawla","Nikhil"
- assert calc.add(A,B) == None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement