def test_tags_gh442(self): import dogstatsd from aggregator import api_formatter serialized = dogstatsd.serialize_metrics( [api_formatter("foo", 12, 1, ('tag', ), 'host')]) assert '"tags": ["tag"]' in serialized[0]
def test_tags_gh442(self): import util import dogstatsd from aggregator import api_formatter serialized = dogstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')]) assert '"tags": ["tag"]' in serialized[0]
def test_tags_gh442(self): import stsstatsd from aggregator import api_formatter serialized = stsstatsd.serialize_metrics( [api_formatter("foo", 12, 1, ('tag', ), 'host')], "test-host") self.assertTrue('"tags": ["tag"]' in serialized[0], serialized)
def test_tags_gh442(self): import sdstatsd from aggregator import api_formatter serialized = sdstatsd.serialize_metrics( [api_formatter("foo", 12, 1, ('tag', ), 'host')], "test-host", "1234567890") assert '"tags": ["tag"]' in serialized[0]
def test_tags_gh442(self): import util import dogstatsd from aggregator import api_formatter json = util.generate_minjson_adapter() dogstatsd.json = json serialized = dogstatsd.serialize([api_formatter("foo", 12, 1, ('tag',), 'host')]) assert '"tags": ["tag"]' in serialized
def test_tags_gh442(self): import util import dogstatsd from aggregator import api_formatter json = util.generate_minjson_adapter() dogstatsd.json = json serialized = dogstatsd.serialize_metrics( [api_formatter("foo", 12, 1, ('tag', ), 'host')]) assert '"tags": ["tag"]' in serialized[0]
def test_tags_gh442(self): import dogstatsd from aggregator import api_formatter serialized = dogstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')], "test-host") self.assertTrue('"tags": ["tag"]' in serialized[0], serialized)
def test_tags_gh442(self): import sdstatsd from aggregator import api_formatter serialized = sdstatsd.serialize_metrics([api_formatter("foo", 12, 1, ('tag',), 'host')], "test-host", "1234567890") assert '"tags": ["tag"]' in serialized[0]