Ejemplo n.º 1
0
 def testRemoveCommand(self):
     status = 0
     output = 'D         /tmp/testing_nemoversion/foo.py'
     command = svncommand.RemoveCommand(
         mock.FileInfo('/tmp/testing_nemoversion/foo.py'))
     self.assertEqual({
         'status': status,
         'output': output
     }, command.execute())
Ejemplo n.º 2
0
 def testStatusCommand(self):
     status = 0
     output = '?      /tmp/testing_nemoversion/foo.py'
     fInfo = mock.FileInfo('/tmp/testing_nemoversion/foo.py')
     command = svncommand.StatusCommand(fInfo)
     self.assertEqual({
         'status': status,
         'output': output
     }, command.execute())
Ejemplo n.º 3
0
 def setUp(self):
     self.finfo = mock.FileInfo('/tmp/testing_nemoversion/foo.py')
Ejemplo n.º 4
0
 def testCmpDiff(self):
     fileInfo = mock.FileInfo("/tmp/testing_nemoversion/foo.py")
     otherCommand = mock.Command(fileInfo)
     theCommand = svncommand.AddCommand(fileInfo)
     self.assertNotEqual(theCommand, otherCommand)