Exemplo n.º 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
Exemplo n.º 2
0
 def test_to_int(self, value, expected):
     u"""Tests for conversion of values to int."""
     assert helpers.to_int(value) == expected
Exemplo n.º 3
0
 def test_to_int(self, value, expected):
     u"""Tests for conversion of values to int."""
     assert helpers.to_int(value) == expected
Exemplo n.º 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