def test_jid_dir(self): test_jid = 20131219110700123489 test_cache_dir = '/tmp/cachdir' test_hash_type = 'md5' expected_jid_dir = '/tmp/cachdir/jobs/69/fda308ccfa70d8296345e6509de136' ret = utils.jid_dir(test_jid, test_cache_dir, test_hash_type) self.assertEqual(ret, expected_jid_dir)