def test_pad_string(self, original, final_length, expected):
        # Arrange
        # Act
        result = pad_string(original, final_length=final_length)

        # Assert
        self.assertEqual(expected, result)
Beispiel #2
0
    def test_pad_string(self, original, final_length, expected):
        # Arrange
        # Act
        result = pad_string(original, final_length=final_length)

        # Assert
        assert result == expected
Beispiel #3
0
    def test_pad_string(self):
        # Arrange
        test_string = "1234"

        # Act
        result = pad_string(test_string, 5)

        # Assert
        self.assertEqual(" 1234", result)