1
1

test-settings.py 436 B

12345678910111213141516171819
  1. from settings import settings
  2. import unittest
  3. class test_settings(unittest.TestCase):
  4. #
  5. # Провеиить корректность заполнения поля first_name
  6. #
  7. def test_check_first_name(self):
  8. # Подготовка
  9. item = settings()
  10. # Действие
  11. item.first_name = "a "
  12. # Проверка
  13. assert item.first_name == "a"