Example #1
0
    def test_version(self):
        self.assertEqual(versions.get_version((0, 0)), '0.0')
        self.assertEqual(versions.get_version((0, 1)), '0.1')
        self.assertEqual(versions.get_version((3, 2)), '3.2')
        self.assertEqual(versions.get_version((3, 2, 1)), '3.2.1')

        self.assertEqual(versions.get_version((3, 2, 1, 'alpha')), '3.2.1alpha')
        self.assertEqual(versions.get_version((3, 2, 1, 'alpha', 0)), '3.2.1 pre-alpha')

        self.assertEqual(versions.get_version((3, 2, 1, 'final')), '3.2.1final')
        self.assertEqual(versions.get_version((3, 2, 1, 'beta', 1234)), '3.2.1beta1234')
Example #2
0
    def test_version(self):
        self.assertEqual(versions.get_version((0, 0)), '0.0')
        self.assertEqual(versions.get_version((0, 1)), '0.1')
        self.assertEqual(versions.get_version((3, 2)), '3.2')
        self.assertEqual(versions.get_version((3, 2, 1)), '3.2.1')

        self.assertEqual(versions.get_version((3, 2, 1, 'alpha')),
                         '3.2.1alpha')
        self.assertEqual(versions.get_version((3, 2, 1, 'alpha', 0)),
                         '3.2.1 pre-alpha')

        self.assertEqual(versions.get_version((3, 2, 1, 'final')),
                         '3.2.1final')
        self.assertEqual(versions.get_version((3, 2, 1, 'beta', 1234)),
                         '3.2.1beta1234')
Example #3
0
    def test_version(self):
        self.assertEqual(versions.get_version((0, 0)), '0.0')
        self.assertEqual(versions.get_version((0, 1)), '0.1')
        self.assertEqual(versions.get_version((3, 2)), '3.2')
        self.assertEqual(versions.get_version((3, 2, 1)), '3.2.1')

        self.assertEqual(versions.get_version((3, 2, 1, 'alpha')), '3.2.1alpha')

        self.assertEqual(versions.get_version((3, 2, 1, 'final')), '3.2.1final')
Example #4
0
    def test_version(self):
        self.assertEqual(versions.get_version((0, 0)), '0.0')
        self.assertEqual(versions.get_version((0, 1)), '0.1')
        self.assertEqual(versions.get_version((3, 2)), '3.2')
        self.assertEqual(versions.get_version((3, 2, 1)), '3.2.1')

        self.assertEqual(versions.get_version((3, 2, 1, 'alpha')), '3.2.1alpha')

        self.assertEqual(versions.get_version((3, 2, 1, 'final')), '3.2.1final')