Esempio n. 1
0
 def test_exit(self):
     storage = ContentStorage()
     storage.close = Mock()
     storage.__exit__()
     storage.close.assert_called_once_with()
Esempio n. 2
0
 def test_close(self):
     storage = ContentStorage()
     storage.close()