haditbefore / haditbefore /

Full commit
This file demonstrates writing tests using the unittest module. These will pass
when you run " test".

Replace this with more appropriate tests for your application.

from django.test import TestCase
from django.test.client import Client

class SimpleTest(TestCase):
    def test_basic_addition(self):
        client = Client()
        response = client.get("/")
        self.assertEqual(len(response.context["problems"]), 2, "Expected 2 problems!")