Using the Python unittest, I found that I lacked clean, descriptive ways to write unit test statements, such as those made in NUnit or Jasmine :
# NUnit Expect(collection, Has.None.EqualTo(DateTime.Now).Within(3).Hours); # Jasmine expect(pi).not.toBeCloseTo(e, 2);
Is there an existing Python library that provides such assertion methods, preferably compatible with the Python unittest library?
source share