def test_with_tempfile_default_prefix(d1): d = basename(d1) short = 'datalad_temp_' full = short + \ 'test_with_tempfile_default_prefix' if on_windows: ok_startswith(d, short) nok_startswith(d, full) else: ok_startswith(d, full)
def test_nok_startswith(): nok_startswith('abc', 'bc') nok_startswith('abc', 'c') assert_raises(AssertionError, nok_startswith, 'abc', 'a') assert_raises(AssertionError, nok_startswith, 'abc', 'abc')