Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_stream(self):
"""Stream identification """
ext = puremagic.from_stream(BytesIO(self.mp4magic))
self.assertEqual(self.expect_ext, ext)
self.assertRaises(ValueError, puremagic.from_stream, BytesIO(b""))
def test_stream(self):
"""Stream identification """
ext = puremagic.from_stream(BytesIO(self.mp4magic))
self.assertEqual(self.expect_ext, ext)
self.assertRaises(ValueError, puremagic.from_stream, BytesIO(b""))