#NEWLINE# def test_simpleflake_parts_timestamp( self ) : #NEWLINE# #INDENT# coolstamp = ( sf . SIMPLEFLAKE_EPOCH + 1234321.0 ) #NEWLINE# epoch_flake = sf . simpleflake ( timestamp = coolstamp ) #NEWLINE# timestamp = sf . extract_bits ( epoch_flake , sf . SIMPLEFLAKE_TIMESTAMP_SHIFT , sf . SIMPLEFLAKE_TIMESTAMP_LENGTH ) #NEWLINE# self . assertEquals ( coolstamp , ( ( timestamp / 1000.0 ) + sf . SIMPLEFLAKE_EPOCH ) )