def test_from_percent_comparison(self): # both represents 0.9%, but they should not be equal assert Range('AKo') != Range.from_percent(0.9)
def test_from_percent_comparison(self): # both represents 0.9%, but they should not be equal assert Range("AKo") != Range.from_percent(0.9)
def test_from_percent(self): assert Range.from_percent(0.9) == Range('KK+')
def test_from_percent(self): assert Range.from_percent(0.9) == Range("KK+")