Skip to content

Instantly share code, notes, and snippets.

@emazzotta
Last active May 29, 2017 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emazzotta/a99af26337f25d8d135193107cf69faa to your computer and use it in GitHub Desktop.
Save emazzotta/a99af26337f25d8d135193107cf69faa to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# calculator.py
class Calculator:
def add(self, x, y):
return x+y
#!/usr/bin/python
# calculator_test.py
from calculator import Calculator
def should_add_two_numbers_correctly():
assert Calculator().add(2, 2) == 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment