def test_should_pass_simple_string_without_trimming_anything(self): self.assertEqual('foobar', _trim_underscores('foobar'))
def test_should_remove_trailing_underscore(self): self.assertEqual('foobar', _trim_underscores('foobar_'))
def test_should_trim_underscores(self): self.assertEqual('foobar', _trim_underscores('_foobar_'))
def test_should_remove_leading_underscore(self): self.assertEqual('foobar', _trim_underscores('_foobar'))
def test_should_pass_simple_string_without_trimming_anything(self): self.assertEqual('foobar', _trim_underscores('foobar'))
def test_should_trim_underscores(self): self.assertEqual('foobar', _trim_underscores('_foobar_'))
def test_should_remove_trailing_underscore(self): self.assertEqual('foobar', _trim_underscores('foobar_'))
def test_should_remove_leading_underscore(self): self.assertEqual('foobar', _trim_underscores('_foobar'))