убрал неиспользуемый класс
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user