1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #27546 -- Tested some __repr__() methods.

This commit is contained in:
Keda87
2016-11-29 12:54:17 +07:00
committed by Tim Graham
parent 78500102b7
commit 794b7d8033
5 changed files with 36 additions and 0 deletions

View File

@@ -45,3 +45,7 @@ class TestBaseConv(TestCase):
with self.assertRaises(ValueError):
BaseConverter('abc', sign='a')
self.assertIsInstance(BaseConverter('abc', sign='d'), BaseConverter)
def test_repr(self):
base7 = BaseConverter('cjdhel3', sign='g')
self.assertEqual(repr(base7), '<BaseConverter: base7 (cjdhel3)>')