def test_tags(self):
        event_id = capture('Message', message='foo', tags=[('level', 'info')])

        event = Event.objects.get(event_id)

        self.assertEquals(len(event.tags), 2, event.tags)

        tags = dict(event.tags)

        self.assertTrue('level' in tags)
        self.assertEquals(tags['level'], 'info')
        
        self.assertTrue('server' in tags)
        self.assertEquals(tags['server'], app.config['NAME'])
dataset/ETHPy150Open dcramer/sentry-old/tests/test_events.py/SentryTest.test_tags/original