예제 #1
0
 def test_from_url(self):
     url = 'https://s3.amazonaws.com/assuranceqa-staging/uploads/imgs/Tlog2.bin'
     log = MachineLog.from_url(url)
예제 #2
0
 def test_from_stream(self):
     """Anonymizing a log that was loaded from a stream should fail (no filename to replace)."""
     url = 'https://s3.amazonaws.com/assuranceqa-staging/uploads/imgs/Tlog2.bin'
     tlog = MachineLog.from_url(url)
     with self.assertRaises(IOError):
         tlog.anonymize()