Esempio n. 1
0
    def test_given_string_arg_with_periods_then_return_same_string_with_dashes(self):

        arg_version = '1.4.3dls5'

        version = dls_release.format_argument_version(arg_version)

        self.assertEqual(len(version), len(arg_version))
        self.assertFalse('.' in version)
        self.assertEqual(arg_version.split('.'), version.split('-'))
Esempio n. 2
0
    def test_given_string_arg_with_periods_then_return_same_string_with_dashes(
            self):

        arg_version = '1.4.3dls5'

        version = dls_release.format_argument_version(arg_version)

        self.assertEqual(len(version), len(arg_version))
        self.assertFalse('.' in version)
        self.assertEqual(arg_version.split('.'), version.split('-'))
Esempio n. 3
0
    def test_given_string_arg_with_no_dots_return_same_string(self):

        arg_version = '1-4'

        self.assertEqual(arg_version,
                         dls_release.format_argument_version(arg_version))
Esempio n. 4
0
    def test_given_empty_string_arg_then_return_empty_string(self):

        arg_version = ''

        self.assertEqual(arg_version,
                         dls_release.format_argument_version(arg_version))
Esempio n. 5
0
    def test_given_string_arg_with_no_dots_return_same_string(self):

        arg_version = '1-4'

        self.assertEqual(arg_version, dls_release.format_argument_version(arg_version))
Esempio n. 6
0
    def test_given_empty_string_arg_then_return_empty_string(self):

        arg_version = ''

        self.assertEqual(arg_version, dls_release.format_argument_version(arg_version))