##// END OF EJS Templates
follow Python conventions for boolean values...
follow Python conventions for boolean values True and False might be singletons and the "default" values for "boolean" expressions, but "all" values in Python has a boolean value and should be evaluated as such. Checking with 'is True' and 'is False' is thus confusing, error prone and unnessarily complex. If we anywhere rely and nullable boolean fields from the database layer and don't want the null value to be treated as False then we should check explicitly for null with 'is None'.

File last commit:

r1064:113a8db2 beta
r3625:260a7a01 beta
Show More
test_feed.py
22 lines | 774 B | text/x-python | PythonLexer
renamed project to rhodecode
r547 from rhodecode.tests import *
class TestFeedController(TestController):
def test_rss(self):
self.log_user()
response = self.app.get(url(controller='feed', action='rss',
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688 repo_name=HG_REPO))
file tests updates + extended the feed tests
r1064
assert response.content_type == "application/rss+xml"
assert """<rss version="2.0">""" in response
renamed project to rhodecode
r547
def test_atom(self):
self.log_user()
response = self.app.get(url(controller='feed', action='atom',
Tests rewrite for 1.2 added some globals configs to make tests easier....
r688 repo_name=HG_REPO))
file tests updates + extended the feed tests
r1064
assert response.content_type == """application/atom+xml"""
assert """<?xml version="1.0" encoding="utf-8"?>""" in response
assert """<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">""" in response