def test_pop_locked(self): d = LockableDict({'a': -1}) d.is_writeable = False with self.assertRaises(WriteableError): d.pop('a')
def test_pop(self): d = LockableDict({'a': -1}) self.assertEqual(d.pop('a'), -1)