text: from http import HTTPStatus
  
  from django.test import TestCase, Client
  
  
  class AboutURLTest(TestCase):
      def setUp(self):
          self.guest_client = Client()
  
      def test_about_urls_exists_at_desired_location(self):
          """Функция проверяет общедоступные страницы для неавторизированных
          пользователей."""
          address_code = {
              '/about/author/': HTTPStatus.OK,
              '/about/tech/': HTTPStatus.OK,
          }
          for address, code in address_code.items():
              with self.subTest(address=address):
                  response = self.guest_client.get(address)
                  self.assertEqual(response.status_code, code)
  
      def test_about_url_uses_correct_template(self):
          """Функция проверяет ожидаемые шаблоны для общедоступных страниц"""
          templates_url_names = {
              'about/author.html': '/about/author/',
              'about/tech.html': '/about/tech/',
          }
          for template, address in templates_url_names.items():
              with self.subTest(adress=address):
                  response = self.guest_client.get(address)
                  self.assertTemplateUsed(response, template)
  