assertlib
Advanced tools
@@ -235,6 +235,17 @@ #!/usr/bin/env python | ||
| def assertAtleast(x, y): | ||
| # x needs to be atleast y | ||
| """Assert that x is atleast y. | ||
| Examples: | ||
| >>> x = 10 | ||
| >>> y = 8 | ||
| >>> assertAtleast(x, y) | ||
| """ | ||
| if not x >= y: | ||
| raise AssertionError("{0} is not equal to or greater than {1}".format(x, y)) | ||
| if __name__ == "__main__": | ||
| import doctest | ||
| doctest.testmod() |
+2
-2
| Metadata-Version: 1.1 | ||
| Name: assertlib | ||
| Version: 0.3.1 | ||
| Version: 0.3.2 | ||
| Summary: assertlib is a standalone library of assertion methods. | ||
@@ -10,3 +10,3 @@ Home-page: http://github.com/antlong/assertlib | ||
| Description: UNKNOWN | ||
| Keywords: assert assertions validation valid data test testing tests unittest pytest nose | ||
| Keywords: assert assertions validation valid data test testing tests unittest pytest nose | ||
| Platform: UNKNOWN | ||
@@ -13,0 +13,0 @@ Classifier: Development Status :: 5 - Production/Stable |
+2
-3
@@ -7,6 +7,5 @@ #!/usr/bin/env python | ||
| name='assertlib', | ||
| version='0.3.1', | ||
| version='0.3.2', | ||
| description='assertlib is a standalone library of assertion methods.', | ||
| keywords='assert assertions validation valid data test testing \ | ||
| tests unittest pytest nose', | ||
| keywords='assert assertions validation valid data test testing tests unittest pytest nose', | ||
| author='Anthony Long', | ||
@@ -13,0 +12,0 @@ author_email='antlong@gmail.com', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
10993
2.48%245
3.81%