Skip to content

Instantly share code, notes, and snippets.

@okusama27
Created December 25, 2017 14:15
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 okusama27/2904c282c133ffbf028b992de48f0e9d to your computer and use it in GitHub Desktop.
Save okusama27/2904c282c133ffbf028b992de48f0e9d to your computer and use it in GitHub Desktop.
import pytest
class SampleMethod():
def method_1(self):
print('method_1')
return 'method_1'
def test_method_1():
sample = SampleMethod()
print('test_method_1')
expected = 'method_1'
actual = sample.method_1()
assert actual == expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment