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')
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')
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')
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')