From cfbdd587f6964f65fd8b7de049227fa1ead858da Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 26 Dec 2013 19:29:32 +0100 Subject: Added file forgotten in previous commit, plus one more test. --- tests/apps/apps.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/apps/apps.py (limited to 'tests/apps/apps.py') diff --git a/tests/apps/apps.py b/tests/apps/apps.py new file mode 100644 index 0000000000..2012a34fd4 --- /dev/null +++ b/tests/apps/apps.py @@ -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' + + -- cgit v1.3