Ejemplo n.º 1
0
 def test_send_to_staff_should_attach_empty_tags(self, patched):
     send_to_staff('error', None)
     arguments = patched.call_args[0]
     self.assertEqual(arguments[3], '')
Ejemplo n.º 2
0
 def test_send_to_staff_should_attach_tags_if_explicitly_passed(self, patched):
     send_to_staff('error', None, 'test_tag')
     arguments = patched.call_args[0]
     self.assertEqual(arguments[3], 'test_tag')