コード例 #1
0
 def _get_tags(self, field):
     return utils.get_tags_from_string(field.get())
コード例 #2
0
ファイル: test_utils.py プロジェクト: putaodoudou/mabot
 def test_string_with_comma_in_tag_name(self):
     self.assertEquals(get_tags_from_string('tag-1, another,tag'),
                       ['tag-1', 'another,tag'])
コード例 #3
0
ファイル: test_utils.py プロジェクト: putaodoudou/mabot
 def test_string_with_empty_tag_name(self):
     self.assertEquals(get_tags_from_string('tag-1, , another, , tag'),
                       ['tag-1', 'another', 'tag'])
コード例 #4
0
ファイル: test_utils.py プロジェクト: putaodoudou/mabot
 def test_string_with_one_tag(self):
     self.assertEquals(get_tags_from_string('tag-1'), ['tag-1'])
コード例 #5
0
ファイル: test_utils.py プロジェクト: putaodoudou/mabot
 def test_string_with_multiple_tags(self):
     self.assertEquals(get_tags_from_string('tag-1, tag, another'),
                       ['tag-1', 'tag', 'another'])
コード例 #6
0
ファイル: test_utils.py プロジェクト: robotframework/mabot
 def test_string_with_empty_tag_name(self):
     self.assertEquals(get_tags_from_string("tag-1, , another, , tag"), ["tag-1", "another", "tag"])
コード例 #7
0
ファイル: test_utils.py プロジェクト: putaodoudou/mabot
 def test_string_without_tags(self):
     self.assertEquals(get_tags_from_string(''), [])
コード例 #8
0
ファイル: test_utils.py プロジェクト: robotframework/mabot
 def test_string_with_comma_in_tag_name(self):
     self.assertEquals(get_tags_from_string("tag-1, another,tag"), ["tag-1", "another,tag"])
コード例 #9
0
ファイル: test_utils.py プロジェクト: robotframework/mabot
 def test_string_with_multiple_tags(self):
     self.assertEquals(get_tags_from_string("tag-1, tag, another"), ["tag-1", "tag", "another"])
コード例 #10
0
ファイル: test_utils.py プロジェクト: robotframework/mabot
 def test_string_with_one_tag(self):
     self.assertEquals(get_tags_from_string("tag-1"), ["tag-1"])
コード例 #11
0
ファイル: test_utils.py プロジェクト: robotframework/mabot
 def test_string_without_tags(self):
     self.assertEquals(get_tags_from_string(""), [])
コード例 #12
0
ファイル: ui.py プロジェクト: qitaos/robotframework-mabot
 def _get_tags(self, field):
     return utils.get_tags_from_string(field.get())