Ticket #8758: feedgenerator.py
File feedgenerator.py, 340 bytes (added by , 16 years ago) |
---|
Line | |
---|---|
1 | """ |
2 | >>> from datetime import datetime |
3 | >>> from django.utils.feedgenerator import get_tag_uri |
4 | |
5 | >>> pub_date = datetime(2008, 11, 14, 13, 37, 0) |
6 | >>> url = "http://www.example.org:8000/2008/11/14/django#headline" |
7 | |
8 | # check the replacement function |
9 | >>> get_tag_uri(url, pub_date) |
10 | u'tag:www.example.org,2008-11-14:/2008/11/14/django/headline' |
11 | """ |