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)'
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)'
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)'
def test_title_ok_3(self): try: res = check_bootcamp_title('Data Engineering') assert res == True except Exception as e: assert str(e) == ''
def test_title_ok_2(self): try: res = check_bootcamp_title('Machine Learning') assert res == True except Exception as e: assert str(e) == ''
def test_title_ok_1(self): try: res = check_bootcamp_title('Python') assert res == True except Exception as e: assert str(e) == ''