In the unittest module, a test will only be run if the method name literally starts with
And then, after you've defined all your tests, make sure you actually run them:
test_
. So, in your example, the first would need to be renamed to def test_triangle_type_scalene(self):
.And then, after you've defined all your tests, make sure you actually run them:
# define test classes if __name__ == "__main__": unittest.main()