

def test_simple_round_down(self):
    'NIST: 1 MiB (as a GiB()) rounds down into a MiB()'
    MiB_in_GiB = bitmath.GiB(bytes=1048576)
    self.assertIs(type(MiB_in_GiB.best_prefix()), bitmath.MiB)

dataset/ETHPy150Open tbielawa/bitmath/tests/test_best_prefix_NIST.py TestBestPrefixNIST.test_simple_round_down/original