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, [])
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') ])
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, [])
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')])