Write a python program to detect the occurrence of a given string in another large string.
String 1: "This is a test."
String 2: "test"
def str_find(str1, str2):
    return str1.find(str2) != -1

str_find("This is a test.", "test")