# HG changeset patch # User Madhusudan.C.S # Date 1264341033 -19800 # Node ID f87d8ee2b9ca965f47aca4d5fab01c83c36f7960 # Parent cca34bc300d72cbe0bb1f812ad4754ef61d22e48 Reorganized the directory structure. Removed unwanted .pyc files. diff -r cca34bc300d7 -r f87d8ee2b9ca __init__.py diff -r cca34bc300d7 -r f87d8ee2b9ca manage.py --- a/manage.py Sun Jan 24 19:16:56 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -#!/usr/bin/python -from django.core.management import execute_manager -try: - import settings # Assumed to be in the same directory. -except ImportError: - import sys - sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) - sys.exit(1) - -if __name__ == "__main__": - execute_manager(settings) diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/__init__.py diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/development.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/development.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,81 @@ +# Django settings for pytask project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = '../pytaskDb' # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'America/Chicago' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = '' + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '' + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/media/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', +# 'django.template.loaders.eggs.load_template_source', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', +) + +ROOT_URLCONF = 'pytask.urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.admin', + 'pytask.taskapp', +) diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/production.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/production.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,81 @@ +# Django settings for pytask project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = '../pytaskDb' # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'America/Chicago' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = '' + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '' + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/media/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', +# 'django.template.loaders.eggs.load_template_source', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', +) + +ROOT_URLCONF = 'pytask.urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.admin', + 'pytask.taskapp', +) diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/settings.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/settings.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,81 @@ +# Django settings for pytask project. + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + # ('Your Name', 'your_email@domain.com'), +) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = '../pytaskDb' # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be available on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'America/Chicago' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = '' + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '' + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/media/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', +# 'django.template.loaders.eggs.load_template_source', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', +) + +ROOT_URLCONF = 'pytask.urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'django.contrib.admin', + 'pytask.taskapp', +) diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/taskapp/__init__.py diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/taskapp/admin.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/taskapp/admin.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,7 @@ +from pytask.taskapp.models import Person,Task,Comment,Credit +from django.contrib import admin + +admin.site.register(Person) +admin.site.register(Task) +admin.site.register(Comment) +admin.site.register(Credit) diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/taskapp/models.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/taskapp/models.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,94 @@ +from django.db import models +from django.contrib.auth.models import User + +GENDER_CHOICES = (( 'M', 'Male'), ('F', 'Female')) +RIGHTS_CHOICES = ( + ("AD", "Admin"), + ("MN", "Manager"), + ("DV", "Developer"), + ("MT", "Mentor"), + ("CT", "Contributor"), + ("GP", "Public"),) + +STATUS_CHOICES = ( + ("OP", "Open"), + ("CL", "Claimed"), + ("LO", "Locked"), + ("AS", "Assigned"),) + +IMAGES_DIR = "./images" +UPLOADS_DIR = "./uploads" + +class Person(models.Model): +#class Person(User): + + user = models.ForeignKey(User, unique = True) + aboutme = models.TextField() + DOB = models.DateField() + gender = models.CharField(max_length = 1, choices = GENDER_CHOICES) + rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES) + credits = models.PositiveSmallIntegerField() + + foss_comm = models.CharField(max_length = 80, blank = True) + phoneNum = models.CharField(max_length = 15, blank = True) + homepage = models.URLField(blank = True) + street = models.CharField(max_length = 80, blank = True) + city = models.CharField(max_length = 25, blank = True) + country = models.CharField(max_length = 25, blank = True) + nick = models.CharField(max_length = 20, blank = True) + photo = models.ImageField(upload_to = IMAGES_DIR, blank = True) + + def __unicode__(self): + return unicode(self.user.username) + + +class Task(models.Model): + + title = models.CharField(max_length = 200, unique = True) + desc = models.TextField() + status = models.CharField(max_length = 2, choices = STATUS_CHOICES) + tags = models.CharField(max_length = 200, blank = True) + + parents = models.ManyToManyField('self', blank = True, related_name = "%(class)s_parents") + deps = models.ManyToManyField('self', blank = True, related_name = "%(class)s_deps") + + credits = models.PositiveSmallIntegerField() + progress = models.PositiveSmallIntegerField() + + mentors = models.ManyToManyField('Person', related_name = "%(class)s_mentors") + created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by") + claimed_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_claimed_users") + assigned_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_assigned_users") + + creation_date = models.DateField() + + ## not yet decided if attribs after this are to be included + ## tasktype = "" ## "bugfix"/"enhancement" + ## priority = "" ## "very urgent"/"urgent" + + def __unicode__(self): + return unicode(self.title) + +class Comment(models.Model): + + task = models.ForeignKey('Task') + data = models.TextField() + created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by") + deleted_by = models.ForeignKey('Person', null = True, blank = True, related_name = "%(class)s_deleted_by") + creation_date = models.DateField() + deleted = models.BooleanField() + attachment = models.FileField(upload_to = UPLOADS_DIR, blank = True) + + def __unicode__(self): + return unicode(self.task.title) + +class Credit(models.Model): + + task = models.ForeignKey('Task') + given_by = models.ForeignKey('Person', related_name = "%(class)s_given_by") + given_to = models.ForeignKey('Person', related_name = "%(class)s_given_to") + points = models.PositiveSmallIntegerField() + + def __unicode__(self): + return unicode(self.task.title) + diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/taskapp/tests.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/taskapp/tests.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,23 @@ +""" +This file demonstrates two different styles of tests (one doctest and one +unittest). These will both pass when you run "manage.py test". + +Replace these with more appropriate tests for your application. +""" + +from django.test import TestCase + +class SimpleTest(TestCase): + def test_basic_addition(self): + """ + Tests that 1 + 1 always equals 2. + """ + self.failUnlessEqual(1 + 1, 2) + +__test__ = {"doctest": """ +Another way to test that 1 + 1 is equal to 2. + +>>> 1 + 1 == 2 +True +"""} + diff -r cca34bc300d7 -r f87d8ee2b9ca pytask/taskapp/views.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pytask/taskapp/views.py Sun Jan 24 19:20:33 2010 +0530 @@ -0,0 +1,1 @@ +# Create your views here. diff -r cca34bc300d7 -r f87d8ee2b9ca settings.py --- a/settings.py Sun Jan 24 19:16:56 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,81 +0,0 @@ -# Django settings for pytask project. - -DEBUG = True -TEMPLATE_DEBUG = DEBUG - -ADMINS = ( - # ('Your Name', 'your_email@domain.com'), -) - -MANAGERS = ADMINS - -DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. -DATABASE_NAME = '../pytaskDb' # Or path to database file if using sqlite3. -DATABASE_USER = '' # Not used with sqlite3. -DATABASE_PASSWORD = '' # Not used with sqlite3. -DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. -DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. - -# Local time zone for this installation. Choices can be found here: -# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name -# although not all choices may be available on all operating systems. -# If running in a Windows environment this must be set to the same as your -# system time zone. -TIME_ZONE = 'America/Chicago' - -# Language code for this installation. All choices can be found here: -# http://www.i18nguy.com/unicode/language-identifiers.html -LANGUAGE_CODE = 'en-us' - -SITE_ID = 1 - -# If you set this to False, Django will make some optimizations so as not -# to load the internationalization machinery. -USE_I18N = True - -# Absolute path to the directory that holds media. -# Example: "/home/media/media.lawrence.com/" -MEDIA_ROOT = '' - -# URL that handles the media served from MEDIA_ROOT. Make sure to use a -# trailing slash if there is a path component (optional in other cases). -# Examples: "http://media.lawrence.com", "http://example.com/media/" -MEDIA_URL = '' - -# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a -# trailing slash. -# Examples: "http://foo.com/media/", "/media/". -ADMIN_MEDIA_PREFIX = '/media/' - -# Make this unique, and don't share it with anybody. -SECRET_KEY = '@7p-w6$99)@&+sp024%is8i=4#62q8*y0xx=5e_z*4h3%@#7u)' - -# List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.load_template_source', - 'django.template.loaders.app_directories.load_template_source', -# 'django.template.loaders.eggs.load_template_source', -) - -MIDDLEWARE_CLASSES = ( - 'django.middleware.common.CommonMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - 'django.contrib.auth.middleware.AuthenticationMiddleware', -) - -ROOT_URLCONF = 'pytask.urls' - -TEMPLATE_DIRS = ( - # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". - # Always use forward slashes, even on Windows. - # Don't forget to use absolute paths, not relative paths. -) - -INSTALLED_APPS = ( - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.sites', - 'django.contrib.admin', - 'pytask.taskapp', -) diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/__init__.py diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/__init__.pyc Binary file taskapp/__init__.pyc has changed diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/admin.py --- a/taskapp/admin.py Sun Jan 24 19:16:56 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -from pytask.taskapp.models import Person,Task,Comment,Credit -from django.contrib import admin - -admin.site.register(Person) -admin.site.register(Task) -admin.site.register(Comment) -admin.site.register(Credit) diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/admin.pyc Binary file taskapp/admin.pyc has changed diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/models.py --- a/taskapp/models.py Sun Jan 24 19:16:56 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,94 +0,0 @@ -from django.db import models -from django.contrib.auth.models import User - -GENDER_CHOICES = (( 'M', 'Male'), ('F', 'Female')) -RIGHTS_CHOICES = ( - ("AD", "Admin"), - ("MN", "Manager"), - ("DV", "Developer"), - ("MT", "Mentor"), - ("CT", "Contributor"), - ("GP", "Public"),) - -STATUS_CHOICES = ( - ("OP", "Open"), - ("CL", "Claimed"), - ("LO", "Locked"), - ("AS", "Assigned"),) - -IMAGES_DIR = "./images" -UPLOADS_DIR = "./uploads" - -class Person(models.Model): -#class Person(User): - - user = models.ForeignKey(User, unique = True) - aboutme = models.TextField() - DOB = models.DateField() - gender = models.CharField(max_length = 1, choices = GENDER_CHOICES) - rights = models.CharField(max_length = 2, choices = RIGHTS_CHOICES) - credits = models.PositiveSmallIntegerField() - - foss_comm = models.CharField(max_length = 80, blank = True) - phoneNum = models.CharField(max_length = 15, blank = True) - homepage = models.URLField(blank = True) - street = models.CharField(max_length = 80, blank = True) - city = models.CharField(max_length = 25, blank = True) - country = models.CharField(max_length = 25, blank = True) - nick = models.CharField(max_length = 20, blank = True) - photo = models.ImageField(upload_to = IMAGES_DIR, blank = True) - - def __unicode__(self): - return unicode(self.user.username) - - -class Task(models.Model): - - title = models.CharField(max_length = 200, unique = True) - desc = models.TextField() - status = models.CharField(max_length = 2, choices = STATUS_CHOICES) - tags = models.CharField(max_length = 200, blank = True) - - parents = models.ManyToManyField('self', blank = True, related_name = "%(class)s_parents") - deps = models.ManyToManyField('self', blank = True, related_name = "%(class)s_deps") - - credits = models.PositiveSmallIntegerField() - progress = models.PositiveSmallIntegerField() - - mentors = models.ManyToManyField('Person', related_name = "%(class)s_mentors") - created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by") - claimed_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_claimed_users") - assigned_users = models.ManyToManyField('Person', blank = True, related_name = "%(class)s_assigned_users") - - creation_date = models.DateField() - - ## not yet decided if attribs after this are to be included - ## tasktype = "" ## "bugfix"/"enhancement" - ## priority = "" ## "very urgent"/"urgent" - - def __unicode__(self): - return unicode(self.title) - -class Comment(models.Model): - - task = models.ForeignKey('Task') - data = models.TextField() - created_by = models.ForeignKey('Person', related_name = "%(class)s_created_by") - deleted_by = models.ForeignKey('Person', null = True, blank = True, related_name = "%(class)s_deleted_by") - creation_date = models.DateField() - deleted = models.BooleanField() - attachment = models.FileField(upload_to = UPLOADS_DIR, blank = True) - - def __unicode__(self): - return unicode(self.task.title) - -class Credit(models.Model): - - task = models.ForeignKey('Task') - given_by = models.ForeignKey('Person', related_name = "%(class)s_given_by") - given_to = models.ForeignKey('Person', related_name = "%(class)s_given_to") - points = models.PositiveSmallIntegerField() - - def __unicode__(self): - return unicode(self.task.title) - diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/models.pyc Binary file taskapp/models.pyc has changed diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/tests.py --- a/taskapp/tests.py Sun Jan 24 19:16:56 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,23 +0,0 @@ -""" -This file demonstrates two different styles of tests (one doctest and one -unittest). These will both pass when you run "manage.py test". - -Replace these with more appropriate tests for your application. -""" - -from django.test import TestCase - -class SimpleTest(TestCase): - def test_basic_addition(self): - """ - Tests that 1 + 1 always equals 2. - """ - self.failUnlessEqual(1 + 1, 2) - -__test__ = {"doctest": """ -Another way to test that 1 + 1 is equal to 2. - ->>> 1 + 1 == 2 -True -"""} - diff -r cca34bc300d7 -r f87d8ee2b9ca taskapp/views.py --- a/taskapp/views.py Sun Jan 24 19:16:56 2010 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -# Create your views here.