Skip to content

Commit

Permalink
fixup extension test
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnboy committed Oct 21, 2019
1 parent 83e8bb5 commit d18a31e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ def is_even(self):
raise TypeError('val is not integer number')
if self.val % 2 != 0:
self._err('Expected <%s> to be even, but was not.' % (self.val))
return self
return self


def test_extension():
add_extension(is_even)
assert_that(124).is_even()
assert_that(124).is_type_of(int).is_even().is_greater_than(123).is_less_than(125).is_equal_to(124)
assert_that(12345678901234567890).is_even()

def test_extension_failure():
Expand Down

0 comments on commit d18a31e

Please sign in to comment.