Пример #1
0
 def test_first_come_prioritized_when_same_short_name(self):
     kws = _Keywords([
         ItemMock('My kw', ['${arg}'], 'source.My kw'),
         ItemMock('My kw', [], 'Collision!')
     ])
     assert_equals(kws.get('My kw').arguments, ['${arg}'])
     assert_equals(kws.get('Collision!').arguments, [])
Пример #2
0
 def setUp(self):
     self.kws = _Keywords([
         ItemMock('My kw', ['${arg}'], 'source.My kw'),
         ItemMock('Given foo', [], 'source.Given foo'),
         ItemMock('${user} should ${foo} and ${bar}', [], 'longem'),
         ItemMock('this ${has} real args', ['${arg}'], 'long.normal')
     ])
Пример #3
0
 def test_first_come_prioritized_when_same_short_name(self):
     kws = _Keywords([ItemMock('My kw', ['${arg}'], 'source.My kw'),
                    ItemMock('My kw', [], 'Collision!')])
     assert_equals(kws.get('My kw').arguments, ['${arg}'])
     assert_equals(kws.get('Collision!').arguments, [])
Пример #4
0
 def setUp(self):
     self.kws = _Keywords([ItemMock('My kw', ['${arg}'], 'source.My kw'),
                    ItemMock('Given foo', [], 'source.Given foo'),
                    ItemMock('${user} should ${foo} and ${bar}', [], 'longem'),
                    ItemMock('this ${has} real args', ['${arg}'], 'long.normal')])