Skip to content

Instantly share code, notes, and snippets.

@itswindtw
Created August 4, 2020 08:09
Show Gist options
  • Save itswindtw/8d6e670430adde6647f683b81196f3f9 to your computer and use it in GitHub Desktop.
Save itswindtw/8d6e670430adde6647f683b81196f3f9 to your computer and use it in GitHub Desktop.
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