コード例 #1
0
ファイル: teststring.py プロジェクト: RahyabGroup/PyCore
 def test_OnlyPersianValidation_ShouldAcceptStringWhichOnlyContainsPersianAlphabeticalCharacterWithSpaces(self):
     employee = Employee()
     employee.name = "رضوان آژ"
     only_persian_validation = PersianEmployeeValidation()
     result = only_persian_validation.validate(employee)
     assert result is None
コード例 #2
0
ファイル: teststring.py プロジェクト: RahyabGroup/PyCore
 def test_OnlyEnglishValidation_ShouldAcceptStringWhichOnlyContainsEnglishAlphabeticalCharacterWithSpaces(self):
     employee = Employee()
     employee.name = "Rezvan aj"
     only_english_validation = EnglishEmployeeValidation()
     result = only_english_validation.validate(employee)
     assert result is None