def test_gen_jid(self): now = datetime.datetime(2002, 12, 25, 12, 00, 00, 00) with patch('datetime.datetime'): datetime.datetime.now.return_value = now ret = utils.gen_jid() self.assertEqual(ret, '20021225120000000000')
def test_gen_jid(self): now = datetime.datetime(2002, 12, 25, 12, 00, 00, 00) with patch('datetime.datetime'): datetime.datetime.now.return_value = now ret = utils.gen_jid() self.assertEqual(ret, '20021225120000000000')