Ejemplo n.º 1
0
 def test_large_name(self):
     username = trim_to_valid_length(
         'thisisaverylongnamethatisinfacttoolong', '.itsi')
     self.assertEqual(len(username), 30)
Ejemplo n.º 2
0
 def test_large_name(self):
     username = trim_to_valid_length(
         'thisisaverylongnamethatisinfacttoolong', '.itsi')
     self.assertEqual(len(username), 30)
Ejemplo n.º 3
0
 def test_small_name(self):
     username = trim_to_valid_length('shortname', '.itsi')
     self.assertLessEqual(len(username), 30)
     self.assertEqual(
         username, 'shortname.itsi', 'The short name should ' +
         'be concatenated but otherwise unmodified')
Ejemplo n.º 4
0
 def test_small_name(self):
     username = trim_to_valid_length('shortname', '.itsi')
     self.assertLessEqual(len(username), 30)
     self.assertEqual(username, 'shortname.itsi', 'The short name should ' +
                      'be concatenated but otherwise unmodified')