def test_build_email_summary_empty(self):
     """Test building an email body based on no commands being run."""
     obs = _build_email_summary([])
     self.assertEqual(obs, '')
 def test_build_email_summary_all_fail(self):
     """Test building an email body where all commands failed."""
     exp = 'QIIME: Fail\nPyCogent: Fail\n\n'
     obs = _build_email_summary([('QIIME', 1), ('PyCogent', 77)])
     self.assertEqual(obs, exp)
 def test_build_email_summary_single_suite(self):
     """Test building an email body based on a single test suite."""
     exp = 'foo: Pass\n\n'
     obs = _build_email_summary([('foo', 0)])
     self.assertEqual(obs, exp)
 def test_build_email_summary_all_pass(self):
     """Test building an email body where all commands ran okay."""
     exp = 'QIIME: Pass\nPyCogent: Pass\n\n'
     obs = _build_email_summary([('QIIME', 0), ('PyCogent', 0)])
     self.assertEqual(obs, exp)