Example #1
0
 def test_round_all(self):
     name = get_cut_image_name(
         power=2.6,
         speed=2.6,
         ppi=2.6,
     )
     self.assertEqual(name, '/static/simplex/img/cuts/316ppi_18.png')
Example #2
0
 def test_index_includes_two_digits_even_if_under_ten(self):
     name = get_cut_image_name(
         power=1,
         speed=2,
         ppi=2,
     )
     self.assertEqual(name, '/static/simplex/img/cuts/100ppi_07.png')
Example #3
0
 def test_round_power_down(self):
     name = get_cut_image_name(
         power=2.4,
         speed=2,
         ppi=2,
     )
     self.assertEqual(name, '/static/simplex/img/cuts/100ppi_12.png')
Example #4
0
 def test_get_middle_cut(self):
     name = get_cut_image_name(
         power=2,
         speed=2,
         ppi=2,
     )
     self.assertEqual(name, '/static/simplex/img/cuts/100ppi_12.png')