2015-11-27 19:14:40 +00:00
|
|
|
import sure # noqa
|
2015-11-02 09:26:40 +00:00
|
|
|
|
2015-11-27 19:14:40 +00:00
|
|
|
from moto.swf.utils import decapitalize
|
2015-11-02 09:26:40 +00:00
|
|
|
|
2015-10-19 07:25:54 +00:00
|
|
|
|
|
|
|
def test_decapitalize():
|
2019-10-31 15:44:26 +00:00
|
|
|
cases = {"fooBar": "fooBar", "FooBar": "fooBar", "FOO BAR": "fOO BAR"}
|
2015-11-03 08:17:56 +00:00
|
|
|
for before, after in cases.items():
|
2015-10-19 07:25:54 +00:00
|
|
|
decapitalize(before).should.equal(after)
|