#NEWLINE# def test_can_use_hyphenated_uuids_in_filter_and_get( self ) : #NEWLINE# #INDENT# obj = AutoUUIDField . objects . create ( ) #NEWLINE# obj_uuid = uuid . UUID ( str ( obj . uuid ) ) #NEWLINE# self . assertTrue ( ( '-' in unicode ( obj ) ) ) #NEWLINE# self . assertTrue ( ( '-' in str ( obj_uuid ) ) ) #NEWLINE# inserted_obj = AutoUUIDField . objects . get ( uuid = obj_uuid ) #NEWLINE# filtered_obj = AutoUUIDField . objects . filter ( uuid = obj_uuid ) [ 0 ] #NEWLINE# self . assertEqual ( inserted_obj . uuid , obj_uuid ) #NEWLINE# self . assertEqual ( filtered_obj . uuid , obj_uuid )