コード例 #1
0
def getDefaultMapParams(serviceName):
    result = {}
    all_channel_ids = getAllChannelIds(serviceName)
    result[CHANNEL_IDS] = all_channel_ids
    result[SERVICE_NAME] = serviceName
    result[NUMBER] = NUMBER_VALUE
    return result
コード例 #2
0
 def testgetAllChannelIds_count(self):
     count_channels = db[CHANNELS_COLLECTION].count()
     result = getAllChannelIds(SERVICE_NAME)
     self.assertEqual(len(result), count_channels)
コード例 #3
0
 def testgetAllChannelIds_id(self):
     result = getAllChannelIds(SERVICE_NAME)
     self.assertEqual(result[0], TEST_ID)
コード例 #4
0
 def testgetAllChannelIds_count(self):
     count_channels = db[CHANNELS_COLLECTION].count()
     result = getAllChannelIds(SERVICE_NAME)
     self.assertEqual(len(result), count_channels)
コード例 #5
0
 def testgetAllChannelIds_id(self):
     result = getAllChannelIds(SERVICE_NAME)
     self.assertEqual(result[0], TEST_ID)