#NEWLINE# def test_get_task_by_uuid_returns_task( self ) : #NEWLINE# #INDENT# task = Task ( name = consts . TASK_NAMES . deploy ) #NEWLINE# self . db . add ( task ) #NEWLINE# self . db . flush ( ) #NEWLINE# task_by_uuid = objects . Task . get_by_uuid ( task . uuid ) #NEWLINE# self . assertEquals ( task . uuid , task_by_uuid . uuid )