Commits

Marc Condon committed a3274f2

added tests for pages.sfgeek.net and pics.sfgeek.net

  • Participants
  • Parent commits fbe8aa1

Comments (0)

Files changed (1)

File sfgeek/apps/testharness/tests_urllib2.py

         length =  len(response.read())
         self.assertEqual(200, response.getcode())
 
+    def test_rails_geo(self):
+        """
+        testing http://geoservices.sfrails.com/geo/whats_my_20?Geo[ip]=76.102.90.91
+        """
+        response = urllib2.urlopen('http://geoservices.sfrails.com/geo/whats_my_20?Geo[ip]=76.102.90.91')
+        length =  len(response.read())
+        self.assertEqual(200, response.getcode())
+
+    def test_pics(self):
+        """
+        testing http://pics.sfgeek.net/photologue
+        """
+        response = urllib2.urlopen('http://pics.sfgeek.net/photologue')
+        length =  len(response.read())
+        self.assertEqual(200, response.getcode())
+
+    def test_pages(self):
+        """
+        testing http://pages.sfgeek.net/
+        """
+        response = urllib2.urlopen('http://pages.sfgeek.net')
+        length =  len(response.read())
+        self.assertEqual(200, response.getcode())
 
 
     def xxxtest_a4lprodpost(self):