예제 #1
0
    def test_all(self):
        self.domain.http.live = True
        self.domain.https.live = True
        self.domain.httpwww.live = True
        self.domain.httpswww.live = True

        self.assertTrue(is_live(self.domain))
예제 #2
0
    def test_www_both(self):
        self.domain.httpwww.live = True
        self.domain.httpswww.live = True

        self.assertTrue(is_live(self.domain))
예제 #3
0
    def test_httpswww_only(self):
        self.domain.httpswww.live = True

        self.assertTrue(is_live(self.domain))
예제 #4
0
    def test_www_neither(self):
        self.domain.http.live = True
        self.domain.https.live = True

        self.assertTrue(is_live(self.domain))
예제 #5
0
 def test_none(self):
     self.assertFalse(is_live(self.domain))