def test_very_positive(self):
     with self.assertRaises(ValueError):
         fixup_int32_as_uint32(0x80000000)
 def test_zero(self):
     result = fixup_int32_as_uint32(0)
     self.assertEqual(result, 0)
 def test_positive(self):
     result = fixup_int32_as_uint32(5)
     self.assertEqual(result, 5)
 def test_negative(self):
     result = fixup_int32_as_uint32(-3)
     self.assertEqual(result, 0x80000003)
 def test_very_positive(self):
     with self.assertRaises(ValueError):
         fixup_int32_as_uint32(0x80000000)
 def test_positive(self):
     result = fixup_int32_as_uint32(5)
     self.assertEqual(result, 5)
 def test_zero(self):
     result = fixup_int32_as_uint32(0)
     self.assertEqual(result, 0)
 def test_negative(self):
     result = fixup_int32_as_uint32(-3)
     self.assertEqual(result, 0x80000003)