def it_converts_correctly(first, second): expect(Integer.to_data(first)) == second
def it_raises_an_exception_when_unable_to_convert(): with expect.raises(ValueError): Integer.to_value("abc")