@@ -0,0 +1,1171 @@
+# -*- coding: utf-8 -*-%0A%22%22%22%0A.. module:: test_user_register%0A%22%22%22%0Aimport json%0A%0Afrom django.urls import reverse%0Afrom django.test import TestCase%0A%0Afrom apps.volontulo.factories import UserFactory%0A%0A%0Aclass TestUserRegister(TestCase):%0A    %22%22%22 Tests for user register %22%22%22%0A%0A    def test_first_registration(self):%0A        %22%22%22Test new user's registration%22%22%22%0A        response = self.client.post(%0A            reverse('register'),%0A            json.dumps(%7B%0A                %22email%22: %22jannowak@o2.pl%22,%0A                %22password%22: %22jan123456%22%0A            %7D),%0A            content_type='application/json'%0A        )%0A        self.assertEqual(response.status_code, 201)%0A%0A    def test_second_registration(self):%0A        %22%22%22Test register if user is registered already%22%22%22%0A        UserFactory.create(%0A            email=%22volunteer2@example.com%22,%0A            password=%22volunteer2%22,%0A        )%0A        response = self.client.post(%0A            reverse('register'),%0A            json.dumps(%7B%0A                %22email%22: %22volunteer2@example.com%22,%0A                %22password%22: %22volunteer2%22%0A            %7D),%0A            content_type='application/json'%0A        )%0A        self.assertEqual(response.status_code, 201)%0A

Add test user register (#1042)