I was going through a few tests written in Java using JUnit and I could'nt help noticing the emphasis which is laid on checking the "type" of objects. This is something I have never seen in Python test-suites.
Java being statically-typed and Python being dynamically-typed, should'nt the reverse be the case?
Python unit tests do check types. All the time. In fact, that's the only thing they are doing.
Python is duck-typed. Duck typing means that the type of an object is defined by its behavior. Unit tests test behavior. Ergo, they test types.
Python unittests almost never check types