Exemple #1
0
 def test_dispatch_msg(self):
     dispatch = any_model(
         models.Dispatch, location='test_location',
         call_type_desc='test_call_type_desc')
     dispatch.tf = 'test_tf'  # not valid at db, but possible for instance
     dispatch.units.create(id='test_unit')
     self.assertEqual(
         utils.dispatch_msg(dispatch),
         'test_call_type_desc\ntest_location\nUnit: test_unit\n'
         'http://tfdd.co/gm/test_tf/')