def test_detect_from_fobj()

in python/tests.py [0:0]


    def test_detect_from_fobj(self):
        with open(self.filename) as fobj:
            result = magic.detect_from_fobj(fobj)
        self.assert_result(result)