Example #1
0
 def test_should_replace_blank_between_words_with_underscore(self):
     self.assertEqual(
         'spam_eggs', _replace_blanks_with_underscores('spam eggs'))
Example #2
0
 def test_should_replace_one_blank_with_one_underscore(self):
     self.assertEqual('_', _replace_blanks_with_underscores(' '))
Example #3
0
 def test_should_replace_blank_after_character_with_underscore(self):
     self.assertEqual('a_', _replace_blanks_with_underscores('a '))
Example #4
0
 def test_should_return_given_string(self):
     self.assertEqual(
         'spameggs', _replace_blanks_with_underscores('spameggs'))
 def test_should_replace_blank_between_words_with_underscore(self):
     self.assertEqual('spam_eggs',
                      _replace_blanks_with_underscores('spam eggs'))
 def test_should_replace_blank_after_character_with_underscore(self):
     self.assertEqual('a_', _replace_blanks_with_underscores('a '))
 def test_should_replace_one_blank_with_one_underscore(self):
     self.assertEqual('_', _replace_blanks_with_underscores(' '))
 def test_should_return_given_string(self):
     self.assertEqual('spameggs',
                      _replace_blanks_with_underscores('spameggs'))