<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>feiz</author_name>
  <author_url>https://blog.hatena.ne.jp/feiz/</author_url>
  <blog_title>logiqboard</blog_title>
  <blog_url>https://feiz.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>おはこんばんちわ。情弱王子feizです。最近とある方の影響で自動テストに凝っておりまして、それはもうセルフプレジャーを覚えた猿のようにテストを書いてるとかいないとかな毎日です。 さて Pythonでテストをかいてると、たまにデコレータが邪魔になることがあります。例えばjsonを返すAPIのビューをdjangoでこんなふうにかきました。 class Api(object): @require_GET @json_response @error_handle @validate(MyViewForm) def myview(self, request, params): return { &quot;azu…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffeiz.hatenadiary.org%2Fentry%2F20110117%2F1295287503&quot; title=&quot;デコレータを外す - logiqboard&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-01-17 03:05:03</published>
  <title>デコレータを外す</title>
  <type>rich</type>
  <url>https://feiz.hatenadiary.org/entry/20110117/1295287503</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
