def test_create_pending(self):
        # Verify if the emails can be sent
        if not self._pre_test_email():
            return

        # If it's pending we should have two messages in the outbox; one
        # to the consumer and one to the site admins.
        if len(settings.ADMINS):
            self.assertEquals(len(mail.outbox), 2)
        else:
            self.assertEquals(len(mail.outbox), 1)

        expected = "Your API Consumer for example.com is awaiting approval."
        self.assertEquals(mail.outbox[0].subject, expected)
Checks if annotations are empty
dataset/ETHPy150Open dgraziotin/dycapo/piston/tests.py/ConsumerTest.test_create_pending--crossover with--dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/annotations.py/Annotations.f_is_empty