コード例 #1
0
ファイル: channel_test.py プロジェクト: liorn/haigha
 def test_next_frame_with_a_frame(self):
     c = Channel(None, None, {})
     ch_id, c_id, m_id = 0, 1, 2
     f0 = MethodFrame(ch_id, c_id, m_id)
     f1 = MethodFrame(ch_id, c_id, m_id)
     c._frame_buffer = deque([f0, f1])
     assert_equals(c.next_frame(), f0)
コード例 #2
0
ファイル: channel_test.py プロジェクト: widgital/haigha
 def test_next_frame_with_a_frame(self):
     c = Channel(None, None, {})
     ch_id, c_id, m_id = 0, 1, 2
     f0 = MethodFrame(ch_id, c_id, m_id)
     f1 = MethodFrame(ch_id, c_id, m_id)
     c._frame_buffer = deque([f0, f1])
     assertEquals(c.next_frame(), f0)
コード例 #3
0
ファイル: channel_test.py プロジェクト: liorn/haigha
 def test_next_frame_with_no_frames(self):
     c = Channel(None, None, {})
     c._frame_buffer = deque()
     assert_equals(c.next_frame(), None)
コード例 #4
0
ファイル: channel_test.py プロジェクト: widgital/haigha
 def test_next_frame_with_no_frames(self):
     c = Channel(None, None, {})
     c._frame_buffer = deque()
     assertEquals(c.next_frame(), None)