예제 #1
0
    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))
예제 #2
0
  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))
예제 #3
0
 def new_mapreduce_id():
   """Generate new mapreduce id."""
   return util._get_descending_key()
예제 #4
0
 def new_mapreduce_id():
     """Generate new mapreduce id."""
     return util._get_descending_key()