def test_get_uninvoiced_events(self):

        uninvoiced_events = Event.objects.uninvoiced_events()

        # There should be as many as there are strictly future events.
        assert len(uninvoiced_events) == self.num_uninvoiced_events

        # Check that events with a fee of zero or None are still on this list
        assert any([x for x in uninvoiced_events if not x.admin_fee])
Run a shell command on a remote host with sudo.
dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEvent.test_get_uninvoiced_events--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/provision/_ssh/_model.py/sudo