ha ha  yeah  this is stupid  it s because if i put pragma  no cover  on the self fail line then it is more than characters  i am thinking of using unittest assertraises as you suggest below  and importing unittest  for 