def assert_mail_count(count, msg=None):
    from django.core import mail

    if msg is None:
        msg = ', '.join([e.subject for e in mail.outbox])
        msg = '%d != %d %s' % (len(mail.outbox), count, msg)
    # assert_equals is dynamicaly added above
    assert_equals(len(mail.outbox), count, msg)  # nopep8
Enable this bluetooth device to be discoverable.
dataset/ETHPy150Open django-nose/django-nose/django_nose/tools.py/assert_mail_count--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/bluez.py/discoverable