{"author_name":"yuheiomori0718","version":"1.0","type":"rich","url":"https://y0m0r.hateblo.jp/entry/20130105/1357372564","published":"2013-01-05 16:56:04","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","width":"100%","categories":["python"],"author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","description":"\u524d\u56de\u306e\u7d9a\u304ddatetime.date\u3092patch\u3057\u305f\u3089relativedelta\u3067\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u306a\u306e\u3067\u3001FakeDate\u3067isinstance\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u307f\u307e\u3059\u3002isinstance\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3059\u308b\u306b\u306f\u3001\u30e1\u30bf\u30af\u30e9\u30b9\u3067__instancecheck__\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002 from unittest import TestCase from dateutil.relativedelta import relativedelta from mock import patch import datetime class DateTodayMockTest(TestCase): def s\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130105%2F1357372564\" title=\"datetime.date\u3092patch\u3059\u308b\u8a71\u306e\u7d9a\u304d\u3068isinstance\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9 - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","title":"datetime.date\u3092patch\u3059\u308b\u8a71\u306e\u7d9a\u304d\u3068isinstance\u306e\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9","height":"190","blog_url":"https://y0m0r.hateblo.jp/","image_url":null}