2021-10-18 19:44:29 +00:00
|
|
|
import sure # noqa # pylint: disable=unused-import
|
2018-12-21 11:28:56 +00:00
|
|
|
|
|
|
|
from moto.swf.utils import decapitalize
|
|
|
|
|
|
|
|
|
|
|
|
def test_decapitalize():
|
2019-12-23 07:38:53 +00:00
|
|
|
cases = {"fooBar": "fooBar", "FooBar": "fooBar", "FOO BAR": "fOO BAR"}
|
2018-12-21 11:28:56 +00:00
|
|
|
for before, after in cases.items():
|
|
|
|
decapitalize(before).should.equal(after)
|