def test_best_prefix_negative_huge_numbers(self):
        positive_result = bitmath.best_prefix(10**8)
        negative_result = bitmath.best_prefix(-10**8)
        # Verify that the best prefix math works for negative and
        # positive numbers
        self.assertEqual(negative_result, -1 * positive_result)
        # Verify that they produce the same type
        self.assertIs(type(negative_result), type(positive_result))
        # Verify that type is what we expect it to be
        self.assertIs(type(negative_result), bitmath.MiB)
best_prefix_base: large negative values retain their prefix unit
dataset/ETHPy150Open tbielawa/bitmath/tests/test_best_prefix_BASE.py/TestBestPrefixBASE.test_best_prefix_negative_huge_numbers