def METHOD_NAME(self):
    release = os_release.OsRelease(
        os_release_file=self._write_os_release(
            dedent(
                """\
            NAME="Ubuntu"
            ID=ubuntu
            ID_LIKE=debian
            PRETTY_NAME="Ubuntu 16.04.3 LTS"
        """
            )
        )
    )
    self.assertRaises(errors.OsReleaseCodenameError, release.version_codename)