убрал неиспользуемый класс

This commit is contained in:
rzaitov
2013-11-12 11:44:36 +04:00
parent 91fce4f1b6
commit c1806fdf2f
13 changed files with 42 additions and 53 deletions
@@ -1,6 +1,6 @@
from CommandBuilders.CreateBackupCommandBuilder import CreateBackupCommandBuilder
line = "create backup for 'BuildSample'"
line = "create backup for '.'"
cmdBuilder = CreateBackupCommandBuilder()
command = cmdBuilder.getCommandFor(line)
@@ -8,18 +8,18 @@ class TestCreateBackup(unittest.TestCase):
def test_parseCurrentDir(self):
line = "create backup for '.'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('.', backupArg.folderPath)
self.assertEqual('.', folderPath)
def test_parseRelativePath(self):
line = "create backup for '../Some/Path'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('../Some/Path', backupArg.folderPath)
self.assertEqual('../Some/Path', folderPath)
def test_parseAbsPath(self):
line = "create backup for '/Some/Abs/Path'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('/Some/Abs/Path', backupArg.folderPath)
self.assertEqual('/Some/Abs/Path', folderPath)
@@ -8,18 +8,18 @@ class TestDeleteBackup(unittest.TestCase):
def test_parseCurrentDir(self):
line = "delete backup '.'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('.', backupArg.folderPath)
self.assertEqual('.', folderPath)
def test_parseRelativePath(self):
line = "delete backup '../Some/Path'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('../Some/Path', backupArg.folderPath)
self.assertEqual('../Some/Path', folderPath)
def test_parseAbsPath(self):
line = "delete backup '/Some/Abs/Path'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('/Some/Abs/Path', backupArg.folderPath)
self.assertEqual('/Some/Abs/Path', folderPath)
@@ -8,18 +8,18 @@ class TestRestoreBackup(unittest.TestCase):
def test_parseCurrentDir(self):
line = "restore from backup '.'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('.', backupArg.folderPath)
self.assertEqual('.', folderPath)
def test_parseRelativePath(self):
line = "restore from backup '../Some/Path'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('../Some/Path', backupArg.folderPath)
self.assertEqual('../Some/Path', folderPath)
def test_parseAbsPath(self):
line = "restore from backup '/Some/Abs/Path'"
backupArg = self.parser.parseLine(line)
folderPath = self.parser.parseLine(line)
self.assertEqual('/Some/Abs/Path', backupArg.folderPath)
self.assertEqual('/Some/Abs/Path', folderPath)