So you basically want to calculate Field 2 based on the value in Field 1
Your Python code block can look like this:
def calcfield(field1):
val = ""
if field1 == "test":
val = "string 2"
else:
val = "other string"
return val
And the field calculation expression:
Field2 =
calcfield(!MyField!)