def test_tokens_from_name(): assert list( tokens_from_name("MyHTTPProject42")) == ["my", "http", "project42"] assert list(tokens_from_name("MyHTTPProject42", remove_digits=True)) == [ "my", "http", "project", ] assert list(tokens_from_name("MyHTTPProject Awesome 42 Stuff")) == [ "my", "http", "project", "awesome", "42", "stuff", ] assert list( tokens_from_name("MyHTTPProject Awesome 42 Stuff", remove_digits=True)) == [ "my", "http", "project", "awesome", "stuff", ]
def test_tokens_from_name(): assert list(tokens_from_name('MyHTTPProject42')) == [ 'my', 'http', 'project42'] assert list(tokens_from_name('MyHTTPProject42', remove_digits=True)) == [ 'my', 'http', 'project'] assert list(tokens_from_name('MyHTTPProject Awesome 42 Stuff')) == [ 'my', 'http', 'project', 'awesome', '42', 'stuff'] assert list(tokens_from_name('MyHTTPProject Awesome 42 Stuff', remove_digits=True)) == [ 'my', 'http', 'project', 'awesome', 'stuff']