Add basic tests for moto.core.utils.camelcase_to_underscores()
This commit is contained in:
parent
45437368b2
commit
a4dfdc8274
14
tests/test_core/test_utils.py
Normal file
14
tests/test_core/test_utils.py
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
from __future__ import unicode_literals
|
||||||
|
import sure
|
||||||
|
|
||||||
|
from moto.core.utils import camelcase_to_underscores
|
||||||
|
|
||||||
|
|
||||||
|
def test_camelcase_to_underscores():
|
||||||
|
cases = {
|
||||||
|
"theNewAttribute": "the_new_attribute",
|
||||||
|
"attri bute With Space": "attribute_with_space",
|
||||||
|
"FirstLetterCapital": "first_letter_capital",
|
||||||
|
}
|
||||||
|
for arg, expected in cases.items():
|
||||||
|
camelcase_to_underscores(arg).should.equal(expected)
|
Loading…
Reference in New Issue
Block a user