Exemple #1
0
 def test__converts_false_to_integer_when_non_convertible_string(self):
     # Arrange
     input = '34_gt'
     # Act
     result = su.is_convertible_to_int(input)
     # Assert
     self.assertFalse(result)
Exemple #2
0
 def test_converts_true_to_integer_when_convertible_string(self):
     # Arrange
     input = '34'
     # Act
     result = su.is_convertible_to_int(input)
     # Assert
     self.assertTrue(result)