File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 4
4
# Create your tests here.
5
5
class DummyTestCase (TestCase ):
6
6
def test_pass (self ):
7
+ """Test Pass"""
8
+ pass
9
+
10
+ def test_negative_comment1 (self ):
11
+ """Use a close comment XML tag -->"""
12
+ pass
13
+
14
+ def test_negative_comment2 (self ):
15
+ """Check XML tag </testsuites>"""
7
16
pass
Original file line number Diff line number Diff line change @@ -57,12 +57,16 @@ def _check_runner(self, runner):
57
57
test_ids = [test .id () for test in suite ]
58
58
self .assertEqual (test_ids , [
59
59
'app2.tests.DummyTestCase.test_pass' ,
60
+ 'app.tests.DummyTestCase.test_negative_comment1' ,
61
+ 'app.tests.DummyTestCase.test_negative_comment2' ,
60
62
'app.tests.DummyTestCase.test_pass' ,
61
63
])
62
64
suite = runner .build_suite (test_labels = [])
63
65
test_ids = [test .id () for test in suite ]
64
66
self .assertEqual (set (test_ids ), set ([
65
67
'app.tests.DummyTestCase.test_pass' ,
68
+ 'app.tests.DummyTestCase.test_negative_comment1' ,
69
+ 'app.tests.DummyTestCase.test_negative_comment2' ,
66
70
'app2.tests.DummyTestCase.test_pass' ,
67
71
]))
68
72
You can’t perform that action at this time.
0 commit comments