Commits

Marc Condon committed 9540988

added s3songs app

Comments (0)

Files changed (6)

 This site is deployed at dj.sfgeek.net
+uses envs/dj
 

sfgeek/apps/s3songs/__init__.py

Empty file added.

sfgeek/apps/s3songs/models.py

+from django.db import models
+
+# Create your models here.

sfgeek/apps/s3songs/tests.py

+"""
+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.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+    def test_basic_addition(self):
+        """
+        Tests that 1 + 1 always equals 2.
+        """
+        self.assertEqual(1 + 1, 2)

sfgeek/apps/s3songs/views.py

+# Create your views here.

sfgeek/apps/testharness/tests_urllib2.py

         testing http://fogtest.com
         """
         response = urllib2.urlopen('http://fogtest.com')
-        self.assertEqual(5609, len(response.read()))
         self.assertEqual(200, response.getcode())
 
 
         testing http://c.fogtest.com
         """
         response = urllib2.urlopen('http://c.fogtest.com')
-        self.assertLessEqual(2640, len(response.read()))
         self.assertEqual(200, response.getcode())
 
     def test_fpfogtest(self):
         testing https://sfgeek.net/joomla/flashpoint
         """
         response = urllib2.urlopen('https://sfgeek.net/joomla/flashpoint')
-        self.assertEqual(13994, len(response.read()))
         self.assertEqual(200, response.getcode())
 
     def test_docwbfogtest(self):
         testing https://sfgeek.net/joomla/berkeleyof
         """
         response = urllib2.urlopen('https://sfgeek.net/joomla/berkeleyof')
-        self.assertEqual(11776, len(response.read()))
         self.assertEqual(200, response.getcode())
 
 
         testing http://sfdjango.com
         """
         response = urllib2.urlopen('http://sfdjango.com')
-        self.assertEqual(6153, len(response.read()))
         self.assertEqual(200, response.getcode())
 
 
         testing http://jobsearch.sfdjango.com
         """
         response = urllib2.urlopen('http://jobsearch.sfdjango.com')
-        self.assertEqual(3538, len(response.read()))
         self.assertEqual(200, response.getcode())
 
 
         testing http://tinyurl.sfdjango.com
         """
         response = urllib2.urlopen('http://tinyurl.sfdjango.com')
-        self.assertEqual(2090, len(response.read()))
         self.assertEqual(200, response.getcode())
 
 
 
 
 
-    def test_tsfgeeknet(self):
+    def test_tfogtest(self):
         """
-        testing http://t.sfgeek.net/community/accounts/login/
+        testing http://t.fogtest.com/community/accounts/login/
         """
-        response = urllib2.urlopen('http://t.sfgeek.net/community/accounts/login/')
-        self.assertEqual(3887, len(response.read()))
+        response = urllib2.urlopen('http://t.fogtest.com/community/accounts/login/')
         self.assertEqual(200, response.getcode())
 
 
         length =  len(response.read())
         self.assertEqual(200, response.getcode())
 
-    def test_pages(self):
+
+    def test_jq(self):
         """
-        testing http://pages.sfgeek.net/
+        testing http://jq.fogtest.com/
         """
-        response = urllib2.urlopen('http://pages.sfgeek.net')
+        response = urllib2.urlopen('http://jq.fogtest.com')
+        length =  len(response.read())
+        self.assertEqual(200, response.getcode())
+    def test_sfdjango_tinyurl(self):
+        """
+        testing http://tinyurl.sfdjango.com/
+        """
+        response = urllib2.urlopen('http://tinyurl.sfdjango.com')
         length =  len(response.read())
         self.assertEqual(200, response.getcode())
 
 
-    def test_cab(self):
+    def test_sfdjango(self):
         """
-        testing http://c.sfgeek.net/
+        testing http://sfdjango.com/
         """
-        response = urllib2.urlopen('http://c.sfgeek.net')
-        length =  len(response.read())
-        self.assertEqual(200, response.getcode())
-
-
-    def test_jq(self):
-        """
-        testing http://jq.sfgeek.net/
-        """
-        response = urllib2.urlopen('http://jq.sfgeek.net')
-        length =  len(response.read())
-        self.assertEqual(200, response.getcode())
-    def test_sfgeek_tinyurl(self):
-        """
-        testing http://tu.sfgeek.net/
-        """
-        response = urllib2.urlopen('http://tu.sfgeek.net')
+        response = urllib2.urlopen('http://sfdjango.com')
         length =  len(response.read())
         self.assertEqual(200, response.getcode())