Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/template_tests/filter_tests/test_divisibleby.py
blob: 2b3fe9aa4cf79b49d95d56b7905c5d3143e2dc36 (plain)
1
2
3
4
5
6
7
8
9
10
11
from django.template.defaultfilters import divisibleby
from django.test import SimpleTestCase


class FunctionTests(SimpleTestCase):

    def test_true(self):
        self.assertEqual(divisibleby(4, 2), True)

    def test_false(self):
        self.assertEqual(divisibleby(4, 3), False)