Пример #1
0
 def test_bounds_all_freezer(self):
     self.assertTupleEqual(get_bounding_addresses([], 6),
                           (0x0, 0x0600000000))
Пример #2
0
 def test_bounds_to_shelf(self):
     con = [5]
     self.assertTupleEqual(get_bounding_addresses(con),
                           (0x0500000000, 0x0600000000))
Пример #3
0
 def test_bounds_to_rack(self):
     con = (3, 5)
     self.assertTupleEqual(get_bounding_addresses(con),
                           (0x0305000000, 0x0306000000))
Пример #4
0
 def test_bounds_to_drawer(self):
     con = (1, 2, 3)
     self.assertTupleEqual(get_bounding_addresses(con),
                           (0x0102030000, 0x0102040000))
Пример #5
0
 def test_bounds_to_box(self):
     con = (3, 2, 1, 3)
     self.assertTupleEqual(get_bounding_addresses(con),
                           (0x0302010300, 0x0302010400))
Пример #6
0
 def test_bounds_with_all(self):
     pos1 = (3, 4, 1, 2, 7)
     self.assertTupleEqual(get_bounding_addresses(pos1),
                           (0x0304010207, 0x0304010300))