Lines Matching refs:mock_emailer
270 def test_email(self, mock_getuser, mock_emailer, mock_attachment, argument
289 self.assertEqual(mock_emailer.call_count, 0)
301 self.assertEqual(mock_emailer.call_count, 1)
305 self.assertEqual(len(mock_emailer.call_args), 2)
306 self.assertEqual(mock_emailer.call_args[0],
311 self.assertTrue(type(mock_emailer.call_args[1]) is dict)
312 self.assertEqual(len(mock_emailer.call_args[1]), 2)
313 self.assertTrue('attachments' in mock_emailer.call_args[1].keys())
314 self.assertEqual(mock_emailer.call_args[1]['msg_type'], 'html')
322 mock_emailer.reset_mock()
331 self.assertEqual(mock_emailer.call_count, 1)
335 self.assertEqual(len(mock_emailer.call_args), 2)
336 self.assertEqual(mock_emailer.call_args[0],
343 self.assertTrue(type(mock_emailer.call_args[1]) is dict)
344 self.assertEqual(len(mock_emailer.call_args[1]), 2)
345 self.assertTrue('attachments' in mock_emailer.call_args[1].keys())
346 self.assertEqual(mock_emailer.call_args[1]['msg_type'], 'html')
354 mock_emailer.reset_mock()
361 self.assertEqual(mock_emailer.call_count, 1)
365 self.assertEqual(len(mock_emailer.call_args), 2)
366 self.assertEqual(mock_emailer.call_args[0],
370 self.assertTrue(type(mock_emailer.call_args[1]) is dict)
371 self.assertEqual(len(mock_emailer.call_args[1]), 2)
372 self.assertTrue('attachments' in mock_emailer.call_args[1].keys())
373 self.assertEqual(mock_emailer.call_args[1]['msg_type'], 'html')
381 mock_emailer.reset_mock()
389 self.assertEqual(mock_emailer.call_count, 0)