def test_macster(self): macster(self.TEST_DIRECTORY) all_dirs = [self.TEST_DIRECTORY, ] + self.TEST_SUBDIRS for dir_ in all_dirs: dsstore_file = os.path.join(dir_, '.DS_Store') self.assertEqual(os.path.exists(dsstore_file), True)
def test_macster(self): macster(self.TEST_DIRECTORY) all_dirs = [ self.TEST_DIRECTORY, ] + self.TEST_SUBDIRS for dir_ in all_dirs: dsstore_file = os.path.join(dir_, '.DS_Store') self.assertEqual(os.path.exists(dsstore_file), True)
from macster import macster import sys if len(sys.argv) == 1: path = "." elif len(sys.argv) == 2: path = sys.argv[1] macster(path) print 'success' print """ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//:/+++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++/:-.` :+++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++:-` /+++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++:. `++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++/. :++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++/` -+++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++/` :++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++- ./+++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++/ `.:/++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++/ ``.:/+++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++//////////+++++++/:::://+++////::://///+++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++//-..``` ```.-://+++++++//:-.``` ``.-://++++++++++++++++++++++++ +++++++++++++++++++++++++/:.` `.-:::-.`` `.-/++++++++++++++++++++++ +++++++++++++++++++++++/-` `-/++++++++++++++++++++