Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Oct 16, 2015
1 parent 27dc6d0 commit 907f2c7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions celery/tests/utils/test_saferepr.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

from celery.tests.case import Case

EXPECTED_1 = """\
{'rest': {'baz': 'The quick brown fox jumps over the lazy dog.', \
'foo': 'The quick brown fox jumps...', ...}}\
"""

D_NUMBERS = {
b'integer': 1,
b'float': 1.3,
Expand Down Expand Up @@ -134,7 +129,8 @@ def test_text(self):
self.assertEqual(saferepr(D_TEXT), repr(D_TEXT).replace("u'", "'"))

def test_text_maxlen(self):
self.assertEqual(saferepr(D_D_TEXT, 100), EXPECTED_1)
self.assertEqual(saferepr(D_D_TEXT, 100),
from_old_repr(repr(D_D_TEXT)[:99] + "...', ...}}"))

def test_same_as_repr(self):
# Simple objects, small containers and classes that overwrite __repr__
Expand Down

0 comments on commit 907f2c7

Please sign in to comment.