Simon Willison’s Weblog

Subscribe

28th May 2020

TIL Asserting a dictionary is a subset of another dictionary — My [lazy approach to writing unit tests](https://simonwillison.net/2020/Feb/11/cheating-at-unit-tests-pytest-black/) means that sometimes I want to run an assertion against most (but not all) of a dictionary.

Recent articles

This is a beat by Simon Willison, posted on 28th May 2020.

Monthly briefing

Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.

Pay me to send you less!

Sponsor & subscribe