def test_millimeters_1_0(self):
		self.assertEqual(RainCollectorTypeDatabase.millimeters_1_0, RainCollectorTypeDatabase(0x3000))

		self.assertAlmostEqual(
			Decimal('0.0393701'),
			RainCollectorTypeDatabase.millimeters_1_0.clicks_to_inches(1),
			delta=0.00001,
		)
		self.assertAlmostEqual(
			Decimal('2.75591'),
			RainCollectorTypeDatabase.millimeters_1_0.clicks_to_inches(70),
			delta=0.00001,
		)

		self.assertEqual(Decimal('0.1'), RainCollectorTypeDatabase.millimeters_1_0.clicks_to_centimeters(1))
		self.assertEqual(Decimal('7.0'), RainCollectorTypeDatabase.millimeters_1_0.clicks_to_centimeters(70))
	def test_millimeters_0_2(self):
		self.assertEqual(RainCollectorTypeDatabase.millimeters_0_2, RainCollectorTypeDatabase(0x2000))

		self.assertAlmostEqual(
			Decimal('0.00787402'),
			RainCollectorTypeDatabase.millimeters_0_2.clicks_to_inches(1),
			delta=0.000001,
		)
		self.assertAlmostEqual(
			Decimal('0.551181'),
			RainCollectorTypeDatabase.millimeters_0_2.clicks_to_inches(70),
			delta=0.000001,
		)

		self.assertEqual(Decimal('0.02'), RainCollectorTypeDatabase.millimeters_0_2.clicks_to_centimeters(1))
		self.assertEqual(Decimal('1.40'), RainCollectorTypeDatabase.millimeters_0_2.clicks_to_centimeters(70))
	def test_inches_0_01(self):
		self.assertEqual(RainCollectorTypeDatabase.inches_0_01, RainCollectorTypeDatabase(0x1000))

		self.assertEqual(Decimal('0.01'), RainCollectorTypeDatabase.inches_0_01.clicks_to_inches(1))
		self.assertEqual(Decimal('0.70'), RainCollectorTypeDatabase.inches_0_01.clicks_to_inches(70))

		self.assertAlmostEqual(
			Decimal('0.0254'),
			RainCollectorTypeDatabase.inches_0_01.clicks_to_centimeters(1),
			delta=0.000001,
		)
		self.assertAlmostEqual(
			Decimal('1.778'),
			RainCollectorTypeDatabase.inches_0_01.clicks_to_centimeters(70),
			delta=0.000001,
		)
	def test_millimeters_0_1(self):
		self.assertEqual(RainCollectorTypeDatabase.millimeters_0_1, RainCollectorTypeDatabase(0x6000))

		self.assertAlmostEqual(
			Decimal('0.00393701'),
			RainCollectorTypeDatabase.millimeters_0_1.clicks_to_inches(1),
			delta=0.000001,
		)
		self.assertAlmostEqual(
			Decimal('0.275591'),
			RainCollectorTypeDatabase.millimeters_0_1.clicks_to_inches(70),
			delta=0.000001,
		)

		self.assertEqual(Decimal('0.01'), RainCollectorTypeDatabase.millimeters_0_1.clicks_to_centimeters(1))
		self.assertEqual(Decimal('0.70'), RainCollectorTypeDatabase.millimeters_0_1.clicks_to_centimeters(70))
	def inches_0_1(self):
		self.assertEqual(RainCollectorTypeDatabase.inches_0_1, RainCollectorTypeDatabase(0x1000))

		self.assertEqual(Decimal('0.1'), RainCollectorTypeDatabase.inches_0_1.clicks_to_inches(1))
		self.assertEqual(Decimal('7.0'), RainCollectorTypeDatabase.inches_0_1.clicks_to_inches(70))

		self.assertAlmostEqual(
			Decimal('0.254'),
			RainCollectorTypeDatabase.inches_0_1.clicks_to_centimeters(1),
			delta=0.000001,
		)
		self.assertAlmostEqual(
			Decimal('17.78'),
			RainCollectorTypeDatabase.inches_0_1.clicks_to_centimeters(70),
			delta=0.000001,
		)