Example #1
0
class FinishCommandTestCase(unittest.TestCase):
    cmd = None
    visitor = None

    def setUp(self):
        self.cmd. FinishCommand('/mydirectory/dir')
        self.visitor = UtilityVisitor()

    def testGetValue(self):
        self.fail('Not implemented yet')

    def testAccept(self):
        self.cmd.accept(self.visitor)
        self.assertEquals(True, self.visitor.isFinishCommandVisited())
Example #2
0
class FinishCommandTestCase(unittest.TestCase):
    cmd = None
    visitor = None

    def setUp(self):
        self.cmd.FinishCommand('/mydirectory/dir')
        self.visitor = UtilityVisitor()

    def testGetValue(self):
        self.fail('Not implemented yet')

    def testAccept(self):
        self.cmd.accept(self.visitor)
        self.assertEquals(True, self.visitor.isFinishCommandVisited())