Skip to content

Instantly share code, notes, and snippets.

@emazzotta
Last active May 29, 2017 23:36
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
#!/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