def test4(self): if Task1.c_type1 == "EUR" and Task1.c_type2 == "GBP": numb1 = 12 Task1.conversion(Task1.c_type1, Task1.c_type2, Task1.numb1) assert(z == 10) #Test 3 fails, converting to GBP does not work.
def test3(self): if Task1.c_type1 == "GBP" and Task1.c_type2 == "EUR": assert(Task1.conversion("GBP", "EUR", 10) == 12) #Test 2 Fails, converting from GBP does not work.