Example #1
0
 def test_email_generator_errors(self):
     """Random email generator errors"""
     with self.assertRaises(IOError):
         email_generator_func('/bad/path/to/test/', 'e')
Example #2
0
 def test_email_generator_errors(self):
     """Random email generator errors"""
     with self.assertRaises(IOError):
         email_generator_func('/bad/path/to/test/', 'e')
Example #3
0
 def test_email_generator_success(self):
     """Generate random mail addresses"""
     email_generator_func(self.email_file, 'e')
     email_generator_func(self.email_file, 'z')
     self.assertTrue(os.path.isfile(self.email_file))
Example #4
0
 def test_email_generator_success(self):
     """Generate random mail addresses"""
     email_generator_func(self.email_file, 'e')
     email_generator_func(self.email_file, 'z')
     self.assertTrue(os.path.isfile(self.email_file))