

def test_get_uninvoiced_events(self):
    'Test that the events manager can find events that owe money'
    uninvoiced_events = Event.objects.uninvoiced_events()
    assert (len(uninvoiced_events) == uninvoiced_events.num_uninvoiced_events)
    assert any([x for x in uninvoiced_events if (not x.admin_fee)])

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEvent.test_get_uninvoiced_events/VarMisuse@29/70 `self`->`uninvoiced_events`