<s> from datetime import datetime <EOL> from uuid import UUID <EOL> from changes . api . serializer import serialize <EOL> from changes . models import LogSource , Job , JobStep <EOL> def test_simple ( ) : <EOL> logsource = LogSource ( <EOL> id = UUID ( hex = '<STR_LIT>' ) , <EOL> job_id = UUID ( hex = '<STR_LIT>' ) , <EOL> job = Job ( id = UUID ( hex = '<STR_LIT>' ) ) , <EOL> step = JobStep ( <EOL> id = UUID ( hex = '<STR_LIT>' ) , <EOL> phase_id = UUID ( hex = '<STR_LIT>' ) <EOL> ) , <EOL> name = '<STR_LIT>' , <EOL> date_created = datetime ( <NUM_LIT> , <NUM_LIT:9> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:15> , <NUM_LIT> ) , <EOL> ) <EOL> result = serialize ( logsource ) <EOL> assert result [ '<STR_LIT:id>' ] == '<STR_LIT>' <EOL> assert result [ '<STR_LIT:name>' ] == '<STR_LIT>' <EOL> assert result [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> assert result [ '<STR_LIT>' ] [ '<STR_LIT:id>' ] == '<STR_LIT>' </s>
