コード例 #1
0
ファイル: test_channels.py プロジェクト: sbuss/qotr
 def test_remove(self):
     Channels.create(self.channel_id, self.meta)
     self.assertEqual(1, Channels.count())
     Channels.remove(self.channel_id)
     self.assertEqual(0, Channels.count())
     Channels.remove(self.channel_id)
     self.assertEqual(0, Channels.count())
コード例 #2
0
ファイル: channel.py プロジェクト: rmoorman/qotr
    def get(self):

        self.write({
            "connections": Channels.connections(),
            "channels": Channels.count()
        })
コード例 #3
0
ファイル: channel.py プロジェクト: sbuss/qotr
    def get(self):

        self.write({
            "connections": Channels.connections(),
            "channels": Channels.count()
        })