def testSimple(self): with open('simple.ntfs.64.out') as f: expected = tsk_helper.strip_all(tsk_helper.get_fsstat_output(f)) with open('simple.ntfs', 'rb') as f: actual = tsk_helper.strip_all(istat_ntfs.istat_ntfs(f, 64)) if len(expected) != len(actual): self.fail() self.assertEqual(expected, actual)
def testImage70(self): with open('image.ntfs.70.out') as f: expected = tsk_helper.strip_all(tsk_helper.get_fsstat_output(f)) with open('image.ntfs', 'rb') as f: actual = tsk_helper.strip_all(istat_ntfs.istat_ntfs(f, 70)) if len(expected) != len(actual): self.fail() self.assertEqual(expected, actual)
def testImage65(self): self.maxDiff = None with open('image.ntfs.65.out') as f: expected = tsk_helper.strip_all(tsk_helper.get_fsstat_output(f)) with open('image.ntfs', 'rb') as f: actual = tsk_helper.strip_all(istat_ntfs.istat_ntfs(f, 65)) # if len(expected) != len(actual): # self.fail() self.assertEqual(expected, actual)