Написал unit тесты для семантической модели команды копирования

This commit is contained in:
Rustam Zaitov 2013-10-28 00:02:06 +04:00
parent bfd9e3e2bf
commit adee404a64
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1 @@
__author__ = 'rzaitov'

View File

@ -0,0 +1,19 @@
import unittest
from parser.CopyParser.CopyArguments import CopyArguments
class TestCopyArguments(unittest.TestCase):
def setUp(self):
self.__copyArguments = CopyArguments()
def test_isValid(self):
self.__copyArguments.setArguments("someVal1", "someVal2")
isValid = self.__copyArguments.isValid()
self.assertEqual(True, isValid)
def test_notValid(self):
self.__copyArguments.setArguments(None, "someVal2")
isValid = self.__copyArguments.isValid()
self.assertEqual(False, isValid)