Add basic tests for moto.core.utils.camelcase_to_underscores()

This commit is contained in:
Jean-Baptiste Barth 2015-11-23 14:04:14 +01:00
parent 45437368b2
commit a4dfdc8274

View 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)