In a chat app I\'m making, I have this (similar) copied and pasted at the top of each API test I\'ve written to check against unauthorized access.
def tes