def assertCommandSucceeds(self, command, *args, **kwargs):
    rc, stdout, stderr = self.runCommand(command, *args, **kwargs)
    fd, tempname = tempfile.mkstemp()
    os.write(fd, stdout)
    os.close(fd)
    self.assertEquals(0, rc,
                      "%s did not return successfully (rc: %d): Output in %s" %
                      (command, rc, tempname))
    os.unlink(tempname)
Asserts that the specified command successfully completes.
dataset/ETHPy150Open CollabQ/CollabQ/appengine_django/tests/commands_test.py/CommandsTest.assertCommandSucceeds