Добавил тест для парсера csproj
This commit is contained in:
parent
318b6430be
commit
3538e3afb1
|
|
@ -0,0 +1,20 @@
|
|||
import unittest
|
||||
from parser.CsprojParser import CsprojParser
|
||||
|
||||
|
||||
class TestCsprojParser(unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.config = {}
|
||||
self.parser = CsprojParser(self.config)
|
||||
|
||||
|
||||
def test_isCsprojStatement(self):
|
||||
expect_true = self.parser.isCsprojStatement('csproj')
|
||||
expect_false = self.parser.isCsprojStatement('bla bla bla')
|
||||
|
||||
self.assertEqual(expect_true, True)
|
||||
self.assertEqual(expect_false, False)
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1 @@
|
|||
__author__ = 'rzaitov'
|
||||
Loading…
Reference in New Issue