def test_name_from_path(): assert_equal(driver.name_from_path("/Users/test/test.py"), "test") assert_equal(driver.name_from_path("/Users/test/test"), "test") assert_equal(driver.name_from_path("test.py"), "test") assert_equal(driver.name_from_path("~/test.py"), "test") assert_equal(driver.name_from_path("~/test"), "test")
def test_name_from_path_has_p(): assert_equal(driver.name_from_path("/Users/test/testp.py"), "testp") assert_equal(driver.name_from_path("testp.py"), "testp") assert_equal(driver.name_from_path("~/testp.py"), "testp") assert_equal(driver.name_from_path("~/testp"), "testp")