Update assert in test_pip_installed_weird_install

Pull #6574 changed the state output slightly, breaking this test. This
commit fixes the test.