Guest User

Untitled

a guest
Apr 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import unittest
  2. from math import mult
  3.  
  4.  
  5. class MultTestCase(unittest.TestCase):
  6. """Tests for math.py."""
  7.  
  8. def test_4_5(self):
  9. self.assertEquals(mult(5, 4), 20)
  10.  
  11. def test_this_will_fail(self):
  12. self.assertEquals(mult(4, 4), 16)
  13.  
  14. ## add this so python play nicely with coverage
  15. if __name__ == "__main__":
  16. unittest.main()
Add Comment
Please, Sign In to add comment