Did I find the right examples for you? yes no

All Samples(15)  |  Call(15)  |  Derive(0)  |  Import(0)

src/d/i/Diaphanum-HEAD/reports/tests.py   Diaphanum(Download)
    def test_add_report_no_copies(self):
        client.login(username='Kril', password='kril')
        before_add = Report.objects.count()
        response = client.post('/reports/add/', {
            "copies-TOTAL_FORMS": 2,
            "signed_from": "rozovo zaiche", })
 
        after_add = Report.objects.count()
 
        self.assertEqual(302, response.status_code)
    def test_add_report_with_incomplete_data(self):
        copies_before_add = Copy.objects.count()
        before_add = Report.objects.count()
        client.login(username='Kril', password='kril')
        response = client.post('/reports/add/', {
 
            })
        after_add = Report.objects.count()
        copies_after_add = Copy.objects.count()
        self.assertEqual(200, response.status_code)
    def test_add_report_with_copies(self):
        copies_before_add = Copy.objects.count()
        before_add = Report.objects.count()
        client.login(username='Kril', password='kril')
        response = client.post('/reports/add/', {