Esempio n. 1
0
 def test_spec_char_title(self):
     try:
         res = check_bootcamp_title('res->/?fft')
         assert res == True
     except Exception as e:
         assert str(
             e
         ) == '[Error] :: invalid bootcamp title chars ([A-Za-z ] allowed)'
Esempio n. 2
0
 def test_long_title(self):
     try:
         res = check_bootcamp_title('abcdefghijklmnopqrstuvwxyz')
         assert res == True
     except Exception as e:
         assert str(
             e
         ) == '[Error] :: invalid bootcamp title length ! (length must be between 3 and 20)'
Esempio n. 3
0
 def test_short_title(self):
     try:
         res = check_bootcamp_title('ti')
         assert res == True
     except Exception as e:
         assert str(
             e
         ) == '[Error] :: invalid bootcamp title length ! (length must be between 3 and 20)'
Esempio n. 4
0
 def test_title_ok_3(self):
     try:
         res = check_bootcamp_title('Data Engineering')
         assert res == True
     except Exception as e:
         assert str(e) == ''
Esempio n. 5
0
 def test_title_ok_2(self):
     try:
         res = check_bootcamp_title('Machine Learning')
         assert res == True
     except Exception as e:
         assert str(e) == ''
Esempio n. 6
0
 def test_title_ok_1(self):
     try:
         res = check_bootcamp_title('Python')
         assert res == True
     except Exception as e:
         assert str(e) == ''