'Tests that the app tags are sent if specified so'

def test_apptags(self):

    agentConfig = {'api_key': 'test_apikey', 'collect_ec2_tags': False, 'collect_orchestrator_tags': False, 'collect_instance_metadata': False, 'create_dd_check_tags': True, 'version': 'test', 'tags': ''}
    disk_config = {'init_config': {}, 'instances': [{}]}
    checks = [load_check('disk', disk_config, agentConfig)]
    c = Collector(agentConfig, [], {}, get_hostname(agentConfig))
    payload = c.run({'initialized_checks': checks, 'init_failed_checks': {}})
    self.assertTrue(('dd_check:disk' in payload['host-tags']['system']))
