first unit test and integration test

A quick test that the homepage works and that the login succeeds in three cases (failure, unconfirmed, and success).
Should we use a helper method or helper object so that if this changes, we only have to do it in one spot?