Created
August 4, 2020 08:09
-
-
Save itswindtw/8d6e670430adde6647f683b81196f3f9 to your computer and use it in GitHub Desktop.
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
import unittest | |
def compare_func(a, b): | |
return a == b | |
class TestCase(unittest.TestCase): | |
@classmethod | |
def setUpClass(cls): | |
cls.compare_func = compare_func | |
def test(self): | |
self.assertTrue(self.compare_func(87, 87)) | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment