Ejemplo n.º 1
0
 def test_should_pass_simple_string_without_trimming_anything(self):
     self.assertEqual('foobar', _trim_underscores('foobar'))
Ejemplo n.º 2
0
 def test_should_remove_trailing_underscore(self):
     self.assertEqual('foobar', _trim_underscores('foobar_'))
Ejemplo n.º 3
0
 def test_should_trim_underscores(self):
     self.assertEqual('foobar', _trim_underscores('_foobar_'))
Ejemplo n.º 4
0
 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'))