Improve Drive class test coverage - 2

This commit is contained in:
desbma
2015-01-29 13:20:36 +01:00
parent c72662ccef
commit 2fa891ab83
2 changed files with 61 additions and 0 deletions
+2
View File
@@ -145,6 +145,8 @@ class Drive:
stats = stat_file.read()
stats = filter(None, map(str.strip, stats.strip().split(" ")))
stats = tuple(map(int, stats))
if not stats:
raise RuntimeError("Unable to get stats for drive %s" % (self))
return stats
@staticmethod