def test_empty_queue(self):
        #will return true if a condor command is run, false otherwise.
        self.assertFalse(cscollector.collector_command_consumer(testrun=True))

        #Double check to make sure the queue was emptied
        r = cscollector.setup_redis_connection()
        self.assertIsNone(r.lpop("collector_commands"))
    def test_no_machine_name(self):
        r = cscollector.setup_redis_connection()
        r.rpush("collector_commands", '{"command": "condor_off"}')

        #will return true if a condor command is run, false otherwise.
        self.assertFalse(cscollector.collector_command_consumer(testrun=True))

        #Double check to make sure the queue was emptied
        self.assertIsNone(r.lpop("collector_commands"))