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