Test all delimeter with spaces at ends:
>>> text_indentation("Hello   :     alx    ?    school.    and  ?   co     ")
Hello:
<BLANKLINE>
alx?
<BLANKLINE>
school.
<BLANKLINE>
and?
<BLANKLINE>
co

Test just delimeter:
>>> text_indentation(".?:")
.
<BLANKLINE>
?
<BLANKLINE>
:
<BLANKLINE>
Test string with the spaces:
>>> text_indentation("    Titus")
Titus
Test just delimeters:
>>> text_indentation("  ?  ")
?
<BLANKLINE>
Test nonindent inside indent
>>> text_indentation("?alx.")
?
<BLANKLINE>
alx.
<BLANKLINE>
Test existing newline:
>>> text_indentation("?\n\n.\n\n:")
?
<BLANKLINE>
<BLANKLINE>
<BLANKLINE>
.
<BLANKLINE>
<BLANKLINE>
<BLANKLINE>
:
<BLANKLINE>
Test none:
>>> text_indentation(None)
Traceback (most recent call last):
...
TypeError: text must be a string
Test num:
>>> text_indentation(33)
Traceback (most recent call last):
...
TypeError: text must be a string
Test string with some spaces:
>>> text_indentation("        Charlie          ")
Charlie
Test string with an empty string:
>>> text_indentation("")
Test string with an empty string (2):
>>> text_indentation("      ")
Test:
>>> text_indentation("Donotkillme: iamtired")
Donotkillme:
<BLANKLINE>
iamtired
Test delimeters with spaces:
>>> text_indentation("      ?:  :  ")
?
<BLANKLINE>
:
<BLANKLINE>
:
<BLANKLINE>
Test newline:
>>> text_indentation("\n")
<BLANKLINE>
Test newlines:
>>> text_indentation("\n\n")
<BLANKLINE>
<BLANKLINE>
Test newline 3:
>>> text_indentation("Hello\n\n")
Hello
<BLANKLINE>
Import module:
>>> text_indentation = __import__('5-text_indentation').text_indentation
Test no delimeters:
>>> text_indentation("Do not kill me ALX")
Do not kill me ALX
Test string with spaces:
>>> text_indentation("Holberton    ")
Holberton
Test all delimeters!:
>>> text_indentation("Hello: alx? school. fooo")
Hello:
<BLANKLINE>
alx?
<BLANKLINE>
school.
<BLANKLINE>
fooo
Test all delimeters with some spaces:
>>> text_indentation("Titus   :   Be  ?  Careful.  with  :  ALX")
Titus:
<BLANKLINE>
Be?
<BLANKLINE>
Careful.
<BLANKLINE>
with:
<BLANKLINE>
ALX
