def test_should_replace_blank_between_words_with_underscore(self): self.assertEqual( 'spam_eggs', _replace_blanks_with_underscores('spam eggs'))
def test_should_replace_one_blank_with_one_underscore(self): self.assertEqual('_', _replace_blanks_with_underscores(' '))
def test_should_replace_blank_after_character_with_underscore(self): self.assertEqual('a_', _replace_blanks_with_underscores('a '))
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'))