# Path: performanceplatform/collector/main.py
# def main():
#     args = arguments.parse_args('Performance Platform Collector')
#     if args.collector_slug:
#         args.query = get_config(args.collector_slug, args.performanceplatform)
# 
#     _run_collector(args.query['entrypoint'], args)


from argparse import Namespace
from hamcrest import assert_that, equal_to
from performanceplatform.collector import main
import mock
import os
import unittest



class TestMain(unittest.TestCase):

    def test_merge_performanceplatform_config(self):
        performanceplatform = {
            'backdrop_url': 'http://foo/data',
        }
        data_set = {
            'data-group': 'group',
            'data-type': 'type'
        }
        token = {
            'token': 'foo',
        }


# Path: performanceplatform/collector/main.py
# def main():
#     args = arguments.parse_args('Performance Platform Collector')
#     if args.collector_slug:
#         args.query = get_config(args.collector_slug, args.performanceplatform)
# 
#     _run_collector(args.query['entrypoint'], args)


# Path: tests/performanceplatform/collector/test_main.py
from argparse import Namespace
from hamcrest import assert_that, equal_to
from performanceplatform.collector import main
import mock
import os
import unittest




class TestMain(unittest.TestCase):

    def test_merge_performanceplatform_config(self):
        performanceplatform = {
            'backdrop_url': 'http://foo/data',
        }
        data_set = {
            'data-group': 'group',
            'data-type': 'type'
        }
        token = {
            'token': 'foo',
        }


        merged = main.merge_performanceplatform_config(