Commits

Anonymous committed 2d0a59b

patchedasttest: fail when an empty str is passed for a node

Comments (0)

Files changed (1)

ropetest/refactor/patchedasttest.py

             if expected == '' or isinstance(child, basestring):
                 self.test_case.assertEquals(expected, child)
             else:
+                self.test_case.assertNotEquals(
+                    '', text, 'probably ignoring some node')
                 self.test_case.assertTrue(
                     child.__class__.__name__.startswith(expected),
                     msg='Expected <%s> but was <%s>' %