assertEquals is deprecated, use assertEqual instead.
This commit is contained in:
parent
123e6d5b4b
commit
eb16804216
|
@ -1141,14 +1141,14 @@ class UnicodeTest(string_tests.CommonTest,
|
||||||
return int(self.value)
|
return int(self.value)
|
||||||
pi = PsuedoFloat(3.1415)
|
pi = PsuedoFloat(3.1415)
|
||||||
letter_m = PsuedoInt(109)
|
letter_m = PsuedoInt(109)
|
||||||
self.assertEquals('%x' % 42, '2a')
|
self.assertEqual('%x' % 42, '2a')
|
||||||
self.assertEquals('%X' % 15, 'F')
|
self.assertEqual('%X' % 15, 'F')
|
||||||
self.assertEquals('%o' % 9, '11')
|
self.assertEqual('%o' % 9, '11')
|
||||||
self.assertEquals('%c' % 109, 'm')
|
self.assertEqual('%c' % 109, 'm')
|
||||||
self.assertEquals('%x' % letter_m, '6d')
|
self.assertEqual('%x' % letter_m, '6d')
|
||||||
self.assertEquals('%X' % letter_m, '6D')
|
self.assertEqual('%X' % letter_m, '6D')
|
||||||
self.assertEquals('%o' % letter_m, '155')
|
self.assertEqual('%o' % letter_m, '155')
|
||||||
self.assertEquals('%c' % letter_m, 'm')
|
self.assertEqual('%c' % letter_m, 'm')
|
||||||
self.assertRaises(TypeError, '%x'.__mod__, pi)
|
self.assertRaises(TypeError, '%x'.__mod__, pi)
|
||||||
self.assertRaises(TypeError, '%x'.__mod__, 3.14)
|
self.assertRaises(TypeError, '%x'.__mod__, 3.14)
|
||||||
self.assertRaises(TypeError, '%X'.__mod__, 2.11)
|
self.assertRaises(TypeError, '%X'.__mod__, 2.11)
|
||||||
|
|
Loading…
Reference in New Issue