コード例 #1
0
ファイル: test_snsbase.py プロジェクト: ivanchak/snsapi
 def test_snsbase_new_channel_full(self):
     nc = SNSBase.new_channel(full=True)
     eq_(4, len(nc), WRONG_RESULT_ERROR)
     in_('channel_name', nc)
     in_('open', nc)
     in_('description', nc)
     in_('methods', nc)
コード例 #2
0
ファイル: test_snsbase.py プロジェクト: MapleUESTC/snsapi
 def test_snsbase_new_channel_full(self):
     nc = SNSBase.new_channel(full=True)
     print nc
     eq_(4, len(nc), WRONG_RESULT_ERROR)
     ok_(('channel_name' in nc), WRONG_RESULT_ERROR)
     ok_(('open' in nc), WRONG_RESULT_ERROR)
     ok_(('description' in nc), WRONG_RESULT_ERROR)
     ok_(('methods' in nc), WRONG_RESULT_ERROR)
コード例 #3
0
ファイル: test_snsbase.py プロジェクト: xxr3376/snsapi
 def test_snsbase_new_channel_full(self):
     nc = SNSBase.new_channel(full=True)
     eq_(7, len(nc), WRONG_RESULT_ERROR)
     in_('channel_name', nc)
     in_('open', nc)
     in_('description', nc)
     in_('methods', nc)
     in_('user_name', nc)
     in_('user_id', nc)
コード例 #4
0
ファイル: test_snsbase.py プロジェクト: Kelvin-Zhong/snsapi
 def test_snsbase_new_channel_normal(self):
     nc = SNSBase.new_channel()
     eq_(2, len(nc), WRONG_RESULT_ERROR)
     in_('channel_name', nc)
     in_('open', nc)
コード例 #5
0
ファイル: test_snsbase.py プロジェクト: xxr3376/snsapi
 def test_snsbase_new_channel_normal(self):
     nc = SNSBase.new_channel()
     eq_(2, len(nc), WRONG_RESULT_ERROR)
     in_('channel_name', nc)
     in_('open', nc)