예제 #1
0
    def test_fujifilm(self):
        """
        DSCF1900.JPG
        """
        # fnumber
        self.assertEqual(format_rational((5.6, )), '5.6')

        # FIXME: exposure time!
        self.assertEqual(format_rational((0.007142857142857143, )), '1/140')
예제 #2
0
    def test_canon(self):
        """
        IMG_8232.JPG
        """
        # fnumber
        self.assertEqual(format_rational((4, 1)), '4')

        # exposure time
        self.assertEqual(format_rational((1, 80)), '1/80')
예제 #3
0
    def test_fujifilm(self):
        """
        DSCF1900.JPG
        """
        # fnumber
        self.assertEqual(format_rational((560, 100)), '5.6')

        # exposure time
        self.assertEqual(format_rational((10, 1400)), '1/140')
예제 #4
0
    def test_fujifilm(self):
        """
        DSCF1900.JPG
        """
        # fnumber
        self.assertEqual(format_rational((5.6,)), '5.6')

        # FIXME: exposure time!
        self.assertEqual(format_rational((0.007142857142857143,)), '1/140')
예제 #5
0
    def test_fujifilm(self):
        """
        DSCF1900.JPG
        """
        # fnumber
        self.assertEqual(format_rational((560, 100)), '5.6')

        # exposure time
        self.assertEqual(format_rational((10, 1400)), '1/140')
예제 #6
0
    def test_canon(self):
        """
        IMG_8232.JPG
        """
        # fnumber
        self.assertEqual(format_rational((4, 1)), '4')

        # exposure time
        self.assertEqual(format_rational((1, 80)), '1/80')
예제 #7
0
    def test_canon_450d(self):
        # fnumber
        self.assertEqual(format_rational((10.0, )), '10')

        # exposure time
        self.assertEqual(format_rational((0.008, )), '1/125')
예제 #8
0
    def test_canon(self):
        # fnumber
        self.assertEqual(format_rational((4.0, )), '4')

        # exposure time
        self.assertEqual(format_rational((0.0125, )), '1/80')
예제 #9
0
    def test_canon_450d(self):
        # fnumber
        self.assertEqual(format_rational((10.0,)), '10')

        # exposure time
        self.assertEqual(format_rational((0.008,)), '1/125')
예제 #10
0
    def test_canon(self):
        # fnumber
        self.assertEqual(format_rational((4.0,)), '4')

        # exposure time
        self.assertEqual(format_rational((0.0125,)), '1/80')