Source code for pygenesis_django.tests

from django.test import TestCase, Client
from django.core.management import call_command
from django.apps import apps
from django.conf import settings
from .info import info

[docs] class TestInfo(TestCase):
[docs] def setUp(self): self.client = Client()
[docs] def test_info_text(self): result = ('Just use this GitHub repository as template:' ' https://github.com/libresource/pygenesis-django and enjoy yourself') self.assertEqual(result, info())
[docs] def test_django_configuration(self): self.assertTrue(apps.is_installed('pygenesis_django')) self.assertIn('django.contrib.admin', settings.INSTALLED_APPS) self.assertIn('django.contrib.auth', settings.INSTALLED_APPS) self.assertIn('django.contrib.contenttypes', settings.INSTALLED_APPS) call_command('check')