Beispiel #1
0
def test_snakify():
    assert bus.snakify("MyClassName") == "my_class_name"
    assert bus.snakify("My1Class23Name456") == "my1_class23_name456"
    assert bus.snakify("MySUPERClassName") == "my_super_class_name"
Beispiel #2
0
def test_snakify():
    assert snakify("MyClassName") == "my_class_name"
    assert snakify("My1Class23Name456") == "my1_class23_name456"
    assert snakify("MySUPERClassName") == "my_super_class_name"