Exemplo n.º 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, [])
Exemplo n.º 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')
     ])
Exemplo n.º 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, [])
Exemplo n.º 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')])