tags:

views:

42

answers:

1

I extended django.utils.feedgenerator.Atom1Feed for my own needs and am trying to write some tests for it. It works fine from runserver and mod_wsgi.

Basically, when feeds are accessed from the testrunner I'm running into these problems:

1) The item_title() and item_description() methods are never called, but item_pubdate(), item_link(), etc are.

2) If I have no feed_title.html or feed_description.html templates then both and will just be "Whatever object at 0xWHATEVER".

3) If I do have a feed_title.html and feed_description.html then will not even exist and will be blank.

What am I doing wrong?

A: 

I figured out what was causing this.

VIM correctly adds \n to the end of text files so there was one at the end of all my feed templates and it was messing up the output in the terminal (somehow causing chunks to totally disappear).

I set VIM to binary and noeol to fix the problem.

Kyle MacFarlane