Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/l/a/lacore-0.1.3/lacore/t/test_archive.py   lacore(Download)
        cb = Mock()
        ar = FolderArchiver()
        for a, k in ar.args([self.data], cb):
            self.assertTrue('arcname' in k)
            self.assertEqual(str, type(k['arcname']))
        cb = Mock(side_effect=Exception())
        ar = FolderArchiver()
        args = ar.args([self.data], cb)
        e = self.assertRaises(Exception, list, args)
        self.assertTrue(hasattr(e, 'filename'))