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], '')
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')