def test_clean(self):
     from pythonbrew.commands.cleanup import CleanupCommand
     from pythonbrew.define import PATH_BUILD, PATH_DISTS
     for path in [PATH_BUILD, PATH_DISTS]:
         fp = open(os.path.join(path, 'dummy.txt'), 'w')
         fp.write('')
         fp.close()
     c = CleanupCommand()
     c.run_command(None, None)
     eq_(0, len(os.listdir(PATH_BUILD)))
     eq_(0, len(os.listdir(PATH_DISTS)))
 def test_clean(self):
     from pythonbrew.commands.cleanup import CleanupCommand
     from pythonbrew.define import PATH_BUILD, PATH_DISTS
     for path in [PATH_BUILD, PATH_DISTS]:
         fp = open(os.path.join(path, 'dummy.txt'), 'w')
         fp.write('')
         fp.close()
     c = CleanupCommand()
     c.run_command(None, None)
     eq_(0, len(os.listdir(PATH_BUILD)))
     eq_(0, len(os.listdir(PATH_DISTS)))
Example #3
0
def test_12_clean():
    from pythonbrew.commands.cleanup import CleanupCommand
    c = CleanupCommand()
    c.run_command(None, None)
Example #4
0
def test_12_clean():
    from pythonbrew.commands.cleanup import CleanupCommand
    c = CleanupCommand()
    c.run_command(None, None)