Exemplo n.º 1
0
 def testReformatNameSomeCaps(self):
     """
     GIVEN: To test reformatting of 'RaJ' and 'sakhAmUru'
     WHEN: reformatName('RaJ','sakhAmUru') is called
     THEN: "Raj SAKHAMURU" is returned
     """
     x = moreFunctions.reformatName('RaJ', 'sakhAmUru')
     self.assertEqual(x, "Raj SAKHAMURU")
Exemplo n.º 2
0
 def testReformatNameWithNumsAndSpaces(self):
     """
     GIVEN: To test reformatting of '3aj' and ' sak ha m111'
     WHEN: reformatName('3aj',' sak ha m111') is called
     THEN: 3aj  SAK HA M111 is returned
     """
     x = moreFunctions.reformatName('3aj', ' sak ha m111')
     self.assertEqual(x, "3aj  SAK HA M111")
Exemplo n.º 3
0
 def testReformatNameLwrCase(self):
     """
     GIVEN: To test reformatting of 'raj' and 'sakhamuru'
     WHEN: reformatName('raj','sakhamuru') is called
     THEN: "Raj SAKHAMURU" is returned
     """
     x = moreFunctions.reformatName('raj', 'sakhamuru')
     self.assertEqual(x, "Raj SAKHAMURU")
Exemplo n.º 4
0
 def testReformatNameOutputAsInput(self):
     """
     GIVEN: To test reformatting of 'Raj' and 'SAKHAMURU'
     WHEN: reformatName('Raj','SAKHAMURU') is called
     THEN: "Raj SAKHAMURU" is returned
     """
     x = moreFunctions.reformatName('Raj', 'SAKHAMURU')
     self.assertEqual(x, "Raj SAKHAMURU")