Added checks for potential problems when listing files

This commit is contained in:
2013-07-15 22:27:06 +10:00
parent df4aefeca1
commit 35ca21e4e4
4 changed files with 58 additions and 15 deletions

View File

@@ -19,7 +19,7 @@ class libfilemanagertest(unittest.TestCase):
inputname = "test input"
outputname = "test output"
data = EncodeData(showname, inputname, outputname)
result = data.__str__()
result = str(data)
expected = "Show: {0}\nInput: {1}\nOutput: " \
"{2}\n".format(showname, inputname, outputname)
self.assertEqual(result, expected)