예제 #1
0
    def test_given_dls_release_number_then_return_with_incremented_most_minor_number(self):

        release_number = '4-5dls12'
        expected_number = '4-5dls13'

        incremented_number = dls_release.increment_version_number(release_number)

        self.assertEqual(incremented_number, expected_number)
예제 #2
0
    def test_given_two_digit_then_return_number_with_most_minor_digit_incremented(self):

        release_number = '4-5'
        expected_number = '4-6'

        incremented_number = dls_release.increment_version_number(release_number)

        self.assertEqual(incremented_number, expected_number)
예제 #3
0
    def test_given_single_digit_then_return_incremented_digit(self):

        release_number = '4'
        expected_number = '5'

        incremented_number = dls_release.increment_version_number(release_number)

        self.assertEqual(incremented_number, expected_number)
예제 #4
0
    def test_given_single_digit_then_return_incremented_digit(self):

        release_number = '4'
        expected_number = '5'

        incremented_number = dls_release.increment_version_number(
            release_number)

        self.assertEqual(incremented_number, expected_number)
예제 #5
0
    def test_given_dls_release_number_then_return_with_incremented_most_minor_number(
            self):

        release_number = '4-5dls12'
        expected_number = '4-5dls13'

        incremented_number = dls_release.increment_version_number(
            release_number)

        self.assertEqual(incremented_number, expected_number)
예제 #6
0
    def test_given_two_digit_then_return_number_with_most_minor_digit_incremented(
            self):

        release_number = '4-5'
        expected_number = '4-6'

        incremented_number = dls_release.increment_version_number(
            release_number)

        self.assertEqual(incremented_number, expected_number)