def METHOD_NAME(self):
    """Tests for register_view, the view to register items."""
    self.login()
    # Load the page.
    for item_type in ["computer", "calculator", "phone"]:
        response = self.client.get(reverse("itemreg_register", kwargs={"item_type": item_type}))
        self.assertEqual(200, response.status_code)
    # Register a phone.
    response = self.client.post(
        reverse("itemreg_register", kwargs={"item_type": "phone"}),
        data={"manufacturer": "other", "imei": "123456789", "model": "test", "description": "haha"},
        follow=True,
    )
    self.assertEqual(200, response.status_code)
    self.assertEqual(1, PhoneRegistration.objects.filter(imei="123456789").count())
    # Register a computer.
    response = self.client.post(
        reverse("itemreg_register", kwargs={"item_type": "computer"}),
        data={"manufacturer": "other", "serial": "1234567890", "model": "test", "description": "haha", "screen_size": 14},
        follow=True,
    )
    self.assertEqual(200, response.status_code)
    self.assertEqual(1, ComputerRegistration.objects.filter(serial="1234567890").count())
    # Register a calculator.
    response = self.client.post(
        reverse("itemreg_register", kwargs={"item_type": "calculator"}),
        data={
            "calc_type": "ti84p",
            "calc_serial": "987654321",
            "calc_id": "test",
        },
        follow=True,
    )
    self.assertEqual(200, response.status_code)
    self.assertEqual(1, CalculatorRegistration.objects.filter(calc_serial="987654321").count())