def test_ok_when_not_in_subdirectory(self): getcwd = path.join('not','forge','tools', 'dummy') main._assert_not_in_subdirectory_of_forge_root(getcwd)
def test_raises_in_subdirectory(self): getcwd = path.join(defaults.FORGE_ROOT, 'dummy') main._assert_not_in_subdirectory_of_forge_root(getcwd)
def test_not_confused_by_similar_directory(self): getcwd = path.join(defaults.FORGE_ROOT + '-app', 'dummy') main._assert_not_in_subdirectory_of_forge_root(getcwd)