示例#1
0
 def test_disallowed_at_end(self):
     """
     If there is a disallowed character at the end it is removed.
     """
     self.assertEqual(
         get_class_name(version='0.3.0-444-g05215b-'),
         'Flocker030444G05215b')
示例#2
0
 def test_disallowed_characters_removed(self):
     """
     Hyphens, periods and + signs are removed.
     """
     self.assertEqual(
         get_class_name(version='0.3.0.dev1+444-05215b'),
         'Flocker030Dev144405215b')
示例#3
0
 def test_caps_after_disallowed(self):
     """
     If there is a letter following a disallowed character then it is
     capitalised.
     """
     self.assertEqual(get_class_name(version='0.3.0-444-g05215b'),
                      'Flocker030444G05215b')
示例#4
0
 def test_caps_after_disallowed(self):
     """
     If there is a letter following a disallowed character then it is
     capitalised.
     """
     self.assertEqual(
         get_class_name(version='0.3.0-444-g05215b'),
         'Flocker030444G05215b')