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