Permalink
Browse files

adding testing structure

  • Loading branch information...
1 parent 663c46c commit 415a84eee3953c5114f5249ddc9c1c13b1526c1b @myusuf3 committed Jul 17, 2012
Showing with 51 additions and 0 deletions.
  1. +6 −0 Makefile
  2. +15 −0 tests/cli.py
  3. +15 −0 tests/config.py
  4. +15 −0 tests/core.py
View
@@ -0,0 +1,6 @@
+SHELL := /bin/bash
+TESTS=$(shell find tests/ -name "*.py")
+
+
+check:
+ nosetests ${TESTS}
View
@@ -0,0 +1,15 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+import unittest
+
+class SimpleTest(unittest.TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
View
@@ -0,0 +1,15 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+import unittest
+
+class SimpleTest(unittest.TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
View
@@ -0,0 +1,15 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+import unittest
+
+class SimpleTest(unittest.TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)

0 comments on commit 415a84e

Please sign in to comment.