removed pre test func

This commit is contained in:
richard 2013-05-18 02:12:46 +01:00
parent fe7a515241
commit 2b8f56af84

View file

@ -24,15 +24,6 @@ TEST_FILE = os.path.basename(__file__)
TEST_FOLDER = 'mega.py_testfolder_{0}'.format(random.random()) TEST_FOLDER = 'mega.py_testfolder_{0}'.format(random.random())
def pre_test():
global FIND_RESP
try:
m.upload(TEST_FILE)
return True
except:
raise ValueError('Pre-test functions failed!')
class TestMega(unittest.TestCase): class TestMega(unittest.TestCase):
def test_mega(self): def test_mega(self):
@ -112,5 +103,4 @@ class TestMega(unittest.TestCase):
if __name__ == '__main__': if __name__ == '__main__':
if pre_test():
unittest.main() unittest.main()