示例#1
0
 def test_website_generation_with_https(self):
     p = PushPackage()
     website = 'https://www.orthospinedistributors.com/'
     websites = p.websites_from_website(website)
     expected = ['http://orthospinedistributors.com', 
                 'https://orthospinedistributors.com', 
                 'http://www.orthospinedistributors.com', 
                 'https://www.orthospinedistributors.com']
     self.assertEqual(len(websites), 4)
     self.assertEqual(websites, expected)
示例#2
0
 def test_website_generation(self):
     p = PushPackage()
     website = 'https://wptest-pushmonkey.rhcloud.com/'
     websites = p.websites_from_website(website)
     expected = ['http://wptest-pushmonkey.rhcloud.com', 
                 'https://wptest-pushmonkey.rhcloud.com', 
                 'http://www.wptest-pushmonkey.rhcloud.com', 
                 'https://www.wptest-pushmonkey.rhcloud.com']
     self.assertEqual(len(websites), 4)
     self.assertEqual(websites, expected)