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
def testgetAllChannelIds_count(self): count_channels = db[CHANNELS_COLLECTION].count() result = getAllChannelIds(SERVICE_NAME) self.assertEqual(len(result), count_channels)
def testgetAllChannelIds_id(self): result = getAllChannelIds(SERVICE_NAME) self.assertEqual(result[0], TEST_ID)