Created
November 14, 2016 18:42
-
-
Save mimming/cec4193808d02423d3b2a13528c5e08a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import unittest | |
class Calculator(): | |
def add(x, y): | |
return x + y | |
class TestCaculator(unittest.TestCase): | |
def test_add(self): | |
self.assertEqual(Calculator.add(4, 4), 8) | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment