- def assertEqual(self, x, y, msg=''):
+ def assertEqual(self, x, y, msg=""):
- def assertNotEqual(self, x, y, msg=''):
+ def assertNotEqual(self, x, y, msg=""):
- def assertAlmostEqual(self, x, y, places=None, msg='', delta=None):
+ def assertAlmostEqual(self, x, y, places=None, msg="", delta=None):
- def assertNotAlmostEqual(self, x, y, places=None, msg='', delta=None):
+ def assertNotAlmostEqual(self, x, y, places=None, msg="", delta=None):
- def assertIs(self, x, y, msg=''):
+ def assertIs(self, x, y, msg=""):
- def assertIsNot(self, x, y, msg=''):
+ def assertIsNot(self, x, y, msg=""):
- def assertIn(self, x, y, msg=''):
+ def assertIn(self, x, y, msg=""):
- def assertIsInstance(self, x, y, msg=''):
+ def assertIsInstance(self, x, y, msg=""):
assert isinstance(x, y), msg
def assertRaises(self, exc, func=None, *args, **kwargs):
assert isinstance(x, y), msg
def assertRaises(self, exc, func=None, *args, **kwargs):
except SkipTest as e:
print(" skipped:", e.args[0])
test_result.skippedNum += 1
except SkipTest as e:
print(" skipped:", e.args[0])
test_result.skippedNum += 1
- if isinstance(c, object) and isinstance(c, type) and issubclass(c, TestCase):
+ if (
+ isinstance(c, object)
+ and isinstance(c, type)
+ and issubclass(c, TestCase)
+ ):