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