예제 #1
0
    def test_pop_locked(self):
        d = LockableDict({'a': -1})
        d.is_writeable = False

        with self.assertRaises(WriteableError):
            d.pop('a')
예제 #2
0
 def test_pop(self):
     d = LockableDict({'a': -1})
     self.assertEqual(d.pop('a'), -1)