gabrielgrant / django-multiforloop

Extends django's forloop syntax to allow simultaneously iterating over multiple lists (zipping)
19 stars 6 forks source link

tests fails #2

Open bretonium opened 12 years ago

bretonium commented 12 years ago
 % python manage.py test multiforloop                                                   
Creating test database for alias 'default'...
.FFF...
======================================================================
FAIL: test_for_tag_multi_longest (multiforloop.tests.TagTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/breton/src/likocorp/env/src/django-multiforloop/multiforloop/tests.py", line 29, in test_for_tag_multi_longest
    self.tag_test(template, context, output)
  File "/home/breton/src/likocorp/env/src/django-multiforloop/multiforloop/tests.py", line 9, in tag_test
    self.assertEqual(t.render(c), output)
AssertionError: u'one:two/1:2/carrot:orange/apple:/' != u'one:two/1:2/carrot:orange/apple:INVALID/'

======================================================================
FAIL: test_for_tag_multi_longest_empty (multiforloop.tests.TagTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/breton/src/likocorp/env/src/django-multiforloop/multiforloop/tests.py", line 35, in test_for_tag_multi_longest_empty
    self.tag_test(template, context, output)
  File "/home/breton/src/likocorp/env/src/django-multiforloop/multiforloop/tests.py", line 9, in tag_test
    self.assertEqual(t.render(c), output)
AssertionError: u'one:/1:/carrot:/apple:/' != u'one:INVALID/1:INVALID/carrot:INVALID/apple:INVALID/'

======================================================================
FAIL: test_for_tag_multi_longest_null (multiforloop.tests.TagTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/breton/src/likocorp/env/src/django-multiforloop/multiforloop/tests.py", line 41, in test_for_tag_multi_longest_null
    self.tag_test(template, context, output)
  File "/home/breton/src/likocorp/env/src/django-multiforloop/multiforloop/tests.py", line 9, in tag_test
    self.assertEqual(t.render(c), output)
AssertionError: u'one:/1:/carrot:/apple:/' != u'one:INVALID/1:INVALID/carrot:INVALID/apple:INVALID/'

----------------------------------------------------------------------
Ran 7 tests in 0.042s

FAILED (failures=3)