From 41a89311408a3c9314cb60a03b43375c7e9202f9 Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Tue, 27 Oct 2009 00:28:00 +0100 Subject: [PATCH] Initial import --- .hgignore | 3 +++ microcms/__init__.py | 0 microcms/models.py | 3 +++ microcms/tests.py | 23 +++++++++++++++++++++++ microcms/views.py | 1 + 5 files changed, 30 insertions(+) create mode 100644 .hgignore create mode 100644 microcms/__init__.py create mode 100644 microcms/models.py create mode 100644 microcms/tests.py create mode 100644 microcms/views.py diff --git a/.hgignore b/.hgignore new file mode 100644 index 0000000..dbd1b19 --- /dev/null +++ b/.hgignore @@ -0,0 +1,3 @@ +syntax:glob +*~ +*.pyc diff --git a/microcms/__init__.py b/microcms/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/microcms/models.py b/microcms/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/microcms/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/microcms/tests.py b/microcms/tests.py new file mode 100644 index 0000000..2247054 --- /dev/null +++ b/microcms/tests.py @@ -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 --git a/microcms/views.py b/microcms/views.py new file mode 100644 index 0000000..60f00ef --- /dev/null +++ b/microcms/views.py @@ -0,0 +1 @@ +# Create your views here.