def test_from_url(self): url = 'https://s3.amazonaws.com/assuranceqa-staging/uploads/imgs/Tlog2.bin' log = MachineLog.from_url(url)
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()