예제 #1
0
def Id_replaces_spaces_with_dashes__test():
    assert_equal(
                                    "hello-world",
        poemtube.make_id( FakeDb(), "hello world" )
    )
예제 #2
0
def Id_replaces_nonalphanum_with_dashes__test():
    assert_equal(
                                      "hello-world----------------------------",
        poemtube.make_id( FakeDb(), """hello world?:{}[]"'+=-_)(*&^%$"!.,<>/@~""" )
    )
예제 #3
0
def Id_is_all_lower_case__test():
    assert_equal(
                                    "hello",
        poemtube.make_id( FakeDb(), "HEllO" )
    )