Skip to content

Instantly share code, notes, and snippets.

@Ladsgroup
Created December 29, 2015 21:08
Show Gist options
  • Save Ladsgroup/4c6610738a214c723c0e to your computer and use it in GitHub Desktop.
Save Ladsgroup/4c6610738a214c723c0e to your computer and use it in GitHub Desktop.
OOP tests
class FeatureTestCase:
"""docstring for FeatureTestCase"""
def __init__(self, name):
super(FeatureTestCase, self).__init__()
self.name = name
def test_pickle(test_case):
return eq_(pickle.loads(pickle.dumps(test_case)), test_case)
def test_solve(self, test_case, cache, expected_value):
return eq_(solve(test_case, cache=cache), expected_value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment