I\'m trying to write a custom filter method that takes an arbitrary number of kwargs and returns a list containing the elements of a database-like list that contain
Note for people that need this for unit testing: there's also an assertDictContainsSubset() method in Python's TestCase class.
http://docs.python.org/2/library/unittest.html?highlight=assertdictcontainssubset#unittest.TestCase.assertDictContainsSubset
It's however deprecated in 3.2, not sure why, maybe there's a replacement for it.