csparpa / fluentcheck

Fluent assertions for Python
MIT License
84 stars 8 forks source link

Added tests and fixes for type hierarchy #10

Closed deanagan closed 4 years ago

deanagan commented 4 years ago

Hi Claudio,

Thanks for adding me as contributor.

I've added new tests and fix some bugs to make the tests pass.

This test was quite interesting for me because I learned 2 new things about the issubclass function in Python:

  1. A class is considered a subclass of itself. I did not know this. I have added a test corresponding to this.
  2. If classinfo argument is a tuple, the class needs to only be a sub class of one of them for issubclass to return true.

Dean