There's no reason to even have a third param to assertRaises here. An empty kwargs dict is equivalent to no kwargs at all.