Update all asserts to be consistant with the unittest framework
Merge pull request #295 from keithcom/encoders

Update all asserts to be consistent with the unittest framework