Lines Matching refs:mock_attachment
270 def test_email(self, mock_getuser, mock_emailer, mock_attachment, argument
290 self.assertEqual(mock_attachment.call_count, 0)
302 self.assertEqual(mock_attachment.call_count, 1)
316 mock_attachment.assert_called_with('report.html',
323 mock_attachment.reset_mock()
332 self.assertEqual(mock_attachment.call_count, 1)
348 mock_attachment.assert_called_with('report.html',
355 mock_attachment.reset_mock()
362 self.assertEqual(mock_attachment.call_count, 1)
375 mock_attachment.assert_called_with('report.html',
382 mock_attachment.reset_mock()
390 self.assertEqual(mock_attachment.call_count, 0)