def test_write_frame(self): frame = Frame(42) assert_raises( NotImplementedError, frame.write_frame, 'stream' )
def test_str(self): frame = Frame(42) assert_equals('Frame[channel: 42]', str(frame))
def test_repr(self): expect(Frame.__str__).returns('foo') frame = Frame(42) assert_equals('foo', repr(frame))
def test_properties(self): frame = Frame('channel_id') assert_equals('channel_id', frame.channel_id)