Simplify NavTreeURLRouter test

Merge `expected_view` variable into `assertEqual`.