qrurls/tests.py
author Tero Marttila <terom@fixme.fi>
Mon, 02 Sep 2013 02:31:55 +0300
changeset 70 e8a8d490df2f
parent 0 1fc671165892
permissions -rw-r--r--
optimize shorturl() to use a single SELECT JOIN query
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".

Replace this with more appropriate tests for your application.
"""

from django.test import TestCase


class SimpleTest(TestCase):
    def test_basic_addition(self):
        """
        Tests that 1 + 1 always equals 2.
        """
        self.assertEqual(1 + 1, 2)