replace nose assertions with simple asserts

This commit is contained in:
Sarah Hoffmann
2021-01-01 15:54:52 +01:00
parent 301fd7f7e8
commit 4ca7197826
5 changed files with 127 additions and 125 deletions

View File

@@ -0,0 +1,12 @@
"""
Collection of assertion functions used for the steps.
"""
class Almost:
def __init__(self, value, offset=0.00001):
self.value = value
self.offset = offset
def __eq__(self, other):
return abs(other - self.value) < self.offset