本文整理匯總了Python中validation.Validate.validate_city_name方法的典型用法代碼示例。如果您正苦於以下問題:Python Validate.validate_city_name方法的具體用法?Python Validate.validate_city_name怎麽用?Python Validate.validate_city_name使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類validation.Validate
的用法示例。
在下文中一共展示了Validate.validate_city_name方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test_number
# 需要導入模塊: from validation import Validate [as 別名]
# 或者: from validation.Validate import validate_city_name [as 別名]
def test_number(self):
self.assertFalse(Validate.validate_city_name("29"))
示例2: test_longstring
# 需要導入模塊: from validation import Validate [as 別名]
# 或者: from validation.Validate import validate_city_name [as 別名]
def test_longstring(self):
self.assertFalse(Validate.validate_city_name("gegwv_svsv"))
示例3: test_azavarosupper
# 需要導入模塊: from validation import Validate [as 別名]
# 或者: from validation.Validate import validate_city_name [as 別名]
def test_azavarosupper(self):
self.assertTrue(Validate.validate_city_name("SZERENCS"))
示例4: test_azavaroslower
# 需要導入模塊: from validation import Validate [as 別名]
# 或者: from validation.Validate import validate_city_name [as 別名]
def test_azavaroslower(self):
self.assertTrue(Validate.validate_city_name("miskolc"))
示例5: test_nothing
# 需要導入模塊: from validation import Validate [as 別名]
# 或者: from validation.Validate import validate_city_name [as 別名]
def test_nothing(self):
self.assertFalse(Validate.validate_city_name(""))
示例6: test_nemazavaros
# 需要導入模塊: from validation import Validate [as 別名]
# 或者: from validation.Validate import validate_city_name [as 別名]
def test_nemazavaros(self):
self.assertFalse(Validate.validate_city_name("Budapest"))