

def test_best_prefix_identical_result(self):
    'NIST: instance.best_prefix returns the same type if nothing changes\n\nStart with a NIST unit that is already prefectly sized, and apply\nbest_prefix() to it.'
    should_be_EiB = bitmath.EiB(1).best_prefix()
    self.assertIs(type(should_be_EiB), bitmath.EiB)
    self.assertIs(type(should_be_EiB.best_prefix()), bitmath.EiB)

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