Beispiel #1
0
 def test_text_file_validate_ng(self):
     assert Validator.text_file_validate('test.txxt') == False
Beispiel #2
0
 def test_base_rt_validate_zero(self):
     assert Validator.base_rt_validate('0') == False
Beispiel #3
0
 def test_text_file_validate(self):
     assert Validator.text_file_validate('test.txt') == True
Beispiel #4
0
 def test_base_rt_validate(self):
     assert Validator.base_rt_validate('3.33') == True
Beispiel #5
0
 def test_base_rt_validate_no_numerical(self):
     assert Validator.base_rt_validate('sss') == False
Beispiel #6
0
 def test_xlsx_file_validate_no_extension(self):
     assert Validator.xlsx_file_validate('test') == 'add xlsx'
Beispiel #7
0
 def test_xlsx_file_validate_other_type(self):
     assert Validator.xlsx_file_validate('test.txt') == False
Beispiel #8
0
 def test_xlsx_file_validate(self):
     assert Validator.xlsx_file_validate('test.xlsx') == True
Beispiel #9
0
 def test_text_files_validate_ng(self):
     ng_files = 'abc.txt;xyz.txt;1020txt'
     assert Validator.text_files_validate(ng_files) == False
Beispiel #10
0
 def test_text_files_validate(self):
     ok_files = 'abc.txt;xyz.txt;1020.txt'
     assert Validator.text_files_validate(ok_files) == True