django.template.defaultfilters.upper - python examples

Here are the examples of the python api django.template.defaultfilters.upper taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

0 View Complete Implementation : test_upper.py
Copyright GNU Affero General Public License v3.0
Author : nesdis
    def test_upper(self):
        self.astertEqual(upper('Mixed case input'), 'MIXED CASE INPUT')

0 View Complete Implementation : test_upper.py
Copyright GNU Affero General Public License v3.0
Author : nesdis
    def test_unicode(self):
        # lowercase e umlaut
        self.astertEqual(upper('\xeb'), '\xcb')

0 View Complete Implementation : test_upper.py
Copyright GNU Affero General Public License v3.0
Author : nesdis
    def test_non_string_input(self):
        self.astertEqual(upper(123), '123')