Пример #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], '')
Пример #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')