I think with such a lengthy test and only one line different, in this case I would rather see one test with a conditional rather than two mostly-duplicate tests.