def test_telephone_too_long_end(self): telephone = "010-858589111" self.assertFalse(hutils.is_telephone(telephone))
def test_telephone_too_short_end(self): telephone = "010-858589" self.assertFalse(hutils.is_telephone(telephone))
def test_telephone_too_short_prefix(self): telephone = "01-85858999" self.assertFalse(hutils.is_telephone(telephone))
def test_telephone_too_long_prefix(self): telephone = "05111-858589991" self.assertFalse(hutils.is_telephone(telephone))
def test_telephone_success_2(self): telephone = "010-85858909" self.assertTrue(hutils.is_telephone(telephone))
def test_telephone_success(self): self.assertTrue(hutils.is_telephone("0510-85858999"))