예제 #1
0
 def test_to_int(self):
     u"""Tests for conversion of values to int."""
     assert helpers.to_int(5) == 5
     assert helpers.to_int(-3.0) == -3
예제 #2
0
 def test_to_int(self, value, expected):
     u"""Tests for conversion of values to int."""
     assert helpers.to_int(value) == expected
예제 #3
0
 def test_to_int(self, value, expected):
     u"""Tests for conversion of values to int."""
     assert helpers.to_int(value) == expected
예제 #4
0
 def test_to_int(self):
     u"""Tests for conversion of values to int."""
     assert helpers.to_int(5) == 5
     assert helpers.to_int(-3.0) == -3