def test_get_av_info_video_duration_rate_frames_fractional_rate(self):
        testfile = os.path.join(settings['tempdir'],
                                '~test_get_av_info_video_fractional_rate.mp4')
        mk_sample_video(testfile, 3, 640, 360, fractions.Fraction(30000, 1001))
        av = avinfo.get_av_info(testfile)
        self.assertEqual(av['duration'], 3.003*1000)
        self.assertEqual(av['rate_n'], 30*1000.0)
        self.assertEqual(av['rate_d'], 1001)
        self.assertEqual(av['frames'], 30*1001 * 3.003/1000.0)
dataset/ETHPy150Open dthpham/butterflow/tests/test_avinfo.py/AvInfoTestCase.test_get_av_info_video_duration_rate_frames_fractional_rate/swapped operands of `/`