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))
def test_www_both(self): self.domain.httpwww.live = True self.domain.httpswww.live = True self.assertTrue(is_live(self.domain))
def test_httpswww_only(self): self.domain.httpswww.live = True self.assertTrue(is_live(self.domain))
def test_www_neither(self): self.domain.http.live = True self.domain.https.live = True self.assertTrue(is_live(self.domain))
def test_none(self): self.assertFalse(is_live(self.domain))