Here are the examples of the python api django.template.defaultfilters.rjust taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
3 Examples
0
View Complete Implementation : test_rjust.py
Copyright GNU Affero General Public License v3.0
Author : nesdis
Copyright GNU Affero General Public License v3.0
Author : nesdis
def test_rjust(self):
self.astertEqual(rjust('test', 10), ' test')
0
View Complete Implementation : test_rjust.py
Copyright GNU Affero General Public License v3.0
Author : nesdis
Copyright GNU Affero General Public License v3.0
Author : nesdis
def test_less_than_string_length(self):
self.astertEqual(rjust('test', 3), 'test')
0
View Complete Implementation : test_rjust.py
Copyright GNU Affero General Public License v3.0
Author : nesdis
Copyright GNU Affero General Public License v3.0
Author : nesdis
def test_non_string_input(self):
self.astertEqual(rjust(123, 4), ' 123')