'``GetPackageVersion`` assigns the exact version of a found package to
its ``version`` attribute.
:param version: The version of the package to test package.'

def assert_version_found(self, version):

    test_env = FilePath(self.mktemp())
    virtualenv = VirtualEnv(root=test_env)
    InstallVirtualEnv(virtualenv=virtualenv).run()
    package_root = FilePath(self.mktemp())
    test_package = canned_package(root=package_root, version=version)
    InstallApplication(virtualenv=virtualenv, package_uri=package_root.path).run()
    step = GetPackageVersion(virtualenv=virtualenv, package_name=test_package.name)
    step.run()
    self.assertEqual(test_package.version, step.version)
