Example #1
0
 def test_dot_is_pygration(self):
     """Check that v0.0.0 is reported as a pygration version."""
     v = VersionNumber("v1.2.3")
     self.assertTrue(v.is_pygration())
     self.assertEqual(v._component(0), "1")
     self.assertEqual(v._component(1), "2")
     self.assertEqual(v._component(2), "3")
Example #2
0
 def test_dot_is_pygration(self):
     """Check that v0.0.0 is reported as a pygration version."""
     v = VersionNumber("v1.2.3")
     self.assertTrue(v.is_pygration())
     self.assertEqual(v._component(0), "1")
     self.assertEqual(v._component(1), "2")
     self.assertEqual(v._component(2), "3")
Example #3
0
 def test_underscore_is_pygration(self):
     """Check that v0_0_0 is reported as a pygration version."""
     v = VersionNumber("v1_2_13")
     self.assertTrue(v.is_pygration())
     self.assertEqual(v._component(0), "1")
     self.assertEqual(v._component(1), "2")
     self.assertEqual(v._component(2), "13")
Example #4
0
 def test_underscore_is_pygration(self):
     """Check that v0_0_0 is reported as a pygration version."""
     v = VersionNumber("v1_2_13")
     self.assertTrue(v.is_pygration())
     self.assertEqual(v._component(0), "1")
     self.assertEqual(v._component(1), "2")
     self.assertEqual(v._component(2), "13")