<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from unittest import TestCase <EOL> from datetime import datetime <EOL> from hashlib import md5 <EOL> from . . serializers import timestamp , identity , md5hex <EOL> class SerializerTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_timestamp ( self ) : <EOL> """<STR_LIT>""" <EOL> dt = datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:6> , <NUM_LIT> ) <EOL> self . assertEqual ( timestamp ( dt ) , <EOL> "<STR_LIT>" ) <EOL> def test_identity ( self ) : <EOL> """<STR_LIT>""" <EOL> obj = object ( ) <EOL> self . assertIs ( identity ( obj ) , obj ) <EOL> def test_md5hex ( self ) : <EOL> """<STR_LIT>""" <EOL> data = b"<STR_LIT>" <EOL> self . assertEqual ( md5hex ( data ) , md5 ( data ) . hexdigest ( ) ) </s>
