Revision: 3322
Author: janne.t.harkonen
Date: Wed May 19 01:26:46 2010
Log: removed comments from other tests
http://code.google.com/p/robotframework/source/detail?r=3322
Modified:
/trunk/utest/parsing/test_populator.py
=======================================
--- /trunk/utest/parsing/test_populator.py Wed May 19 00:55:08 2010
+++ /trunk/utest/parsing/test_populator.py Wed May 19 01:26:46 2010
@@ -41,6 +41,7 @@
def _setting_with(self, name):
return getattr(self._datafile.setting_table, name)
+
class TestCaseFilePopulatingTest(_PopulatorTest):
def setUp(self):
@@ -156,9 +157,7 @@
def test_malicious_for_loop(self):
self._create_table('Test cases', [['Malicious for loop test'],
['', 'Log', 'Before FOR'],
- ['#', 'Log', 'Before FOR'],
['', '::::
fOr', '${i}', 'IN', '10', '20'],
- ['#', '...', 'No operation'],
['', '...', '30', '40'],
['', '...', '50', '60'],
['', '', 'Log Many', '${i}'],
@@ -206,21 +205,6 @@
assert_equals(uk.args.value, ['${foo}', '${bar}'])
assert_equals(uk.return_.value, ['ankka', 'kameli'])
- def test_comment_handling(self):
- self._create_table('Keywords', [['#Commented row'],
- ['', '# Another Commented row'],
- ['My User
Keyword', '#End', 'of', 'row comment'],
-
['', '[Arguments]', '${foo}', '${bar}'],
- ['', 'Log Many', '${foo}'],
- ['', '# Commented row inside kw'],
- ['', '...', 'bar'],
- ['', 'No Operation'],
-
['', '[Return]', 'ankka', 'kameli']])
- uk = self._nth_uk(0)
- assert_equals(len(uk.steps), 2)
- assert_equals(uk.args.value, ['${foo}', '${bar}'])
- assert_equals(uk.return_.value, ['ankka', 'kameli'])
-
def test_curdir_handling(self):
self._create_table('Test cases', [['My test name'],
['', 'Log', '${CURDIR}']])
@@ -313,7 +297,8 @@
['#comment between rows'],
['Default Tags', 'Quux']])
self._assert_setting('force_tags', ['Foo', 'Bar'], 'comment')
- #self._assert_setting('default_tags', ['Quux'], 'comment between
rows')
+ self._assert_setting('default_tags', ['Quux'], 'comment between
rows')
+
if __name__ == '__main__':
unittest.main()