def test_clean_up(self):
    self.patch_object(self.c, 'finalise', name='mock_finalise')
    self.c.clean_up()
    self.mock_finalise.assert_called_once_with()
def test_clean_up(self):
    self.patch_object(self.c, 'finalise', name='mock_finalise')
    self.c.clean_up()
    self.mock_finalise.assert_called_once_with()