#NEWLINE# def test_parse( self ) : #NEWLINE# #INDENT# coolstamp = ( sf . SIMPLEFLAKE_EPOCH + 123123 ) #NEWLINE# gen = random . SystemRandom ( ) #NEWLINE# random_bits = gen . getrandbits ( sf . SIMPLEFLAKE_RANDOM_LENGTH ) #NEWLINE# flake = sf . simpleflake ( timestamp = coolstamp , random_bits = random_bits ) #NEWLINE# parts = sf . parse_simpleflake ( flake ) #NEWLINE# self . assertEquals ( coolstamp , parts . timestamp ) #NEWLINE# self . assertEquals ( random_bits , coolstamp . random_bits )