def test_registration(self):
    client = APIClient()
    user = {'username': 'martin', 'first_name': 'Martin', 'last_name': 'Bright', 'email': 'example@example.com', 'password': 'pwd123', 'confirm_password': 'pwd123', 'birth_year': 1983}
    response = client.post((('/' + API_PATH) + 'register'), user, format='json')
    assert (response.status_code == 201)
def test_registration(self):
    client = APIClient()
    user = {'username': 'martin', 'first_name': 'Martin', 'last_name': 'Bright', 'email': 'example@example.com', 'password': 'pwd123', 'confirm_password': 'pwd123', 'birth_year': 1983}
    response = client.post((('/' + API_PATH) + 'register'), user, format='json')
    assert (response.status_code == 201)