コード例 #1
0
 def test_mm(self):
     self.assertAlmostEqual(
         convertPrintParameterToInches('12mm'),
         12.0 * 3.78 / 96,
     )
コード例 #2
0
 def test_inch(self):
     self.assertAlmostEqual(
         convertPrintParameterToInches('12in'),
         12.0,
     )
コード例 #3
0
 def test_cm(self):
     self.assertAlmostEqual(
         convertPrintParameterToInches('12cm'),
         12.0 * 37.8 / 96,
     )
コード例 #4
0
 def test_px(self):
     self.assertEqual(
         convertPrintParameterToInches('12px'),
         12.0 / 96,
     )
コード例 #5
0
ファイル: test_misc.py プロジェクト: Tilyp/pyppeteer
 def test_mm(self):
     self.assertAlmostEqual(
         convertPrintParameterToInches('12mm'),
         12.0 * 3.78 / 96,
     )
コード例 #6
0
ファイル: test_misc.py プロジェクト: Tilyp/pyppeteer
 def test_cm(self):
     self.assertAlmostEqual(
         convertPrintParameterToInches('12cm'),
         12.0 * 37.8 / 96,
     )
コード例 #7
0
ファイル: test_misc.py プロジェクト: Tilyp/pyppeteer
 def test_inch(self):
     self.assertAlmostEqual(
         convertPrintParameterToInches('12in'),
         12.0,
     )
コード例 #8
0
ファイル: test_misc.py プロジェクト: Tilyp/pyppeteer
 def test_px(self):
     self.assertEqual(
         convertPrintParameterToInches('12px'),
         12.0 / 96,
     )