#NEWLINE# def test_raise_exception_when_no_field( self ) : #NEWLINE# #INDENT# fake_field = 'device_info__fortunately_unexisting_deprecated_field' #NEWLINE# with self . assertRaises ( FieldDoesNotExist ) : #NEWLINE# #INDENT# found = get_field_by_relation_path ( Asset , fake_field )