1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Added file forgotten in previous commit, plus one more test.

This commit is contained in:
Aymeric Augustin
2013-12-26 19:29:32 +01:00
parent e179291fa5
commit cfbdd587f6
2 changed files with 32 additions and 1 deletions

27
tests/apps/apps.py Normal file
View File

@@ -0,0 +1,27 @@
from __future__ import unicode_literals
from django.apps import AppConfig
class MyAdmin(AppConfig):
name = 'django.contrib.admin'
verbose_name = "Admin sweet admin."
class MyAuth(AppConfig):
name = 'django.contrib.auth'
verbose_name = "All your password are belong to us."
class BadConfig(AppConfig):
"""This class doesn't supply the mandatory 'name' attribute."""
class NotAConfig(object):
name = 'apps'
class NoSuchApp(AppConfig):
name = 'there is no such app'