why do we have an assertion inside the code, this is not a unit test we should remove this assertion if you need to control something use the if statement