def testCommand(self):
     command = GitCommand(command=GIT_PULL)
     self.assertEqual(['"git pull"'], command.asList())
     self.assertEqual('"git pull"', command.asString())
 def testWithFilename(self):
     command = GitCommand(command=GIT_STATUS, value="a file")
     self.assertEqual(['"git status"', '"a file"'], command.asList())
     self.assertEqual('"git status" "a file"', command.asString())
 def testWithOption(self):
     command = GitCommand(command=GIT_LOG, value="a file")
     command.addOption('-p')
     self.assertEqual(['"git log --decorate=short --graph -p"', '"a file"'], command.asList())
     self.assertEqual('"git log --decorate=short --graph -p" "a file"', command.asString())