def testBasic(self): """Basic test of the function.""" now = 1234567890 os.environ["REQUEST_ID_HASH"] = "12345678" self.assertEquals("159453012940012345678", util._get_descending_key(gettime=lambda: now))
def testBasic(self): """Basic test of the function.""" now = 1234567890 os.environ["REQUEST_ID_HASH"] = "12345678" self.assertEquals( "159453012940012345678", util._get_descending_key( gettime=lambda: now))
def new_mapreduce_id(): """Generate new mapreduce id.""" return util._get_descending_key()