diff --git a/accounting/tests.py b/accounting/tests.py index 44fb84e9..93fa9f79 100644 --- a/accounting/tests.py +++ b/accounting/tests.py @@ -3,9 +3,11 @@ from django.core.urlresolvers import reverse from django.contrib.auth.models import Group from django.core.management import call_command from django.conf import settings +from datetime import date, datetime from core.models import User from counter.models import Counter +from accounting.models import GeneralJournal, Operation, Label, AccountingType, SimplifiedAccountingType class RefoundAccountTest(TestCase): @@ -17,7 +19,7 @@ class RefoundAccountTest(TestCase): self.skia.customer.save() def test_permission_denied(self): - self.client.login(useername='guy', password='plop') + self.client.login(username='guy', password='plop') response_post = self.client.post(reverse("accounting:refound_account"), {"user": self.skia.id}) response_get = self.client.get(reverse("accounting:refound_account")) @@ -45,3 +47,153 @@ class RefoundAccountTest(TestCase): self.assertTrue('