Created
December 29, 2015 21:08
-
-
Save Ladsgroup/4c6610738a214c723c0e to your computer and use it in GitHub Desktop.
OOP tests
This file contains 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
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