<s> """<STR_LIT>""" <EOL> from . import TestCase <EOL> import bitmath <EOL> class TestAttributeProperties ( TestCase ) : <EOL> def setUp ( self ) : <EOL> self . kib = bitmath . KiB ( <NUM_LIT:1> ) <EOL> self . kib_bits = <NUM_LIT> <EOL> self . kib_bytes = <NUM_LIT> <EOL> self . kib_value = <NUM_LIT:1> <EOL> def test_read_bits ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( self . kib . bits , self . kib_bits ) <EOL> def test_read_bytes ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( self . kib . bytes , self . kib_bytes ) <EOL> def test_read_value ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertEqual ( self . kib . value , self . kib_value ) <EOL> def test_write_property_fails ( self ) : <EOL> """<STR_LIT>""" <EOL> with self . assertRaises ( AttributeError ) : <EOL> self . kib . value += <NUM_LIT> </s>
