Написал unit тесты для семантической модели команды копирования
This commit is contained in:
parent
bfd9e3e2bf
commit
adee404a64
|
|
@ -0,0 +1 @@
|
|||
__author__ = 'rzaitov'
|
||||
|
|
@ -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)
|
||||
Loading…
Reference in New Issue