Example #1
0
 def test_MakeFriendly_DuplicateSpaces(self):
     a = NavTree()
     self.assertEqual("test extra spaces",
                      a.MakeFriendly("test    extra   spaces"))
Example #2
0
 def test_MakeFriendly_StartEndSpaces(self):
     a = NavTree()
     self.assertEqual("test start end spaces",
                      a.MakeFriendly("  test start end spaces   "))
Example #3
0
 def test_MakeFriendly_MultipleUpper(self):
     a = NavTree()
     self.assertEqual("TEst MULtiple UPPEr CASEINAROW",
                      a.MakeFriendly("TEstMULtipleUPPErCASEINAROW"))
Example #4
0
 def test_MakeFriendly_AllCaps(self):
     a = NavTree()
     self.assertEqual("TESTALLCAPS", a.MakeFriendly("TESTALLCAPS"))
Example #5
0
 def test_MakeFriendly_MixedCase(self):
     a = NavTree()
     self.assertEqual("Test Mixed Case", a.MakeFriendly("TestMixed_Case"))
Example #6
0
 def test_MakeFriendly_SnakeCase(self):
     a = NavTree()
     self.assertEqual("Test Snake Case", a.MakeFriendly("Test_Snake_Case"))
Example #7
0
 def test_MakeFriendly_CamelCase(self):
     a = NavTree()
     self.assertEqual("Test Camel Case", a.MakeFriendly("TestCamelCase"))