def test_full_path_user_directory(self): """Verify that full_path() expands a user directory path.""" filename = "somefile" result = executable.full_path("~/{}".format(filename)) expected_path = "{}/{}".format(os.path.expanduser('~'), filename) self.assertEqual(expected_path, result)
def test_full_path_relative(self): """Verify that full_path() expands a relative path.""" filename = "somefile" result = executable.full_path(filename) expected_path = "{}/{}".format(os.getcwd(), filename) self.assertEqual(expected_path, result)