diff --git a/scripts/UnitTests/CopyParser/__init__.py b/scripts/UnitTests/CopyParser/__init__.py new file mode 100644 index 0000000..cc31abc --- /dev/null +++ b/scripts/UnitTests/CopyParser/__init__.py @@ -0,0 +1 @@ +__author__ = 'rzaitov' diff --git a/scripts/UnitTests/CopyParser/test_copyArguments.py b/scripts/UnitTests/CopyParser/test_copyArguments.py new file mode 100644 index 0000000..e220626 --- /dev/null +++ b/scripts/UnitTests/CopyParser/test_copyArguments.py @@ -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) \ No newline at end of file