def test_inv_to_entries(self): """ Inventory items are correctly converted. """ result = list( _inv_to_entries({ "py:method": { u"some_method": (None, None, u"some_module.py", u"-"), }, "std:option": { u"--destination": (u"doc2dash", u"2.0", u"index.html#document-usage#cmdoption--destination", u"-") }, "std:constant": { u"SomeConstant": (None, None, u"some_other_module.py", u"-") } })) assert set([ ParserEntry(name=u'some_method', type=u'Method', path=u'some_module.py'), ParserEntry(name=u'--destination', type=u'Option', path=u'index.html#cmdoption--destination'), ParserEntry( name=u'SomeConstant', type=u'Constant', path=u'some_other_module.py', ) ]) == set(result)
def test_inv_to_entries(self): """ Inventory items are correctly converted. """ result = list( _inv_to_entries({"py:method": { u"some_method": (None, None, u"some_module.py", u"-"), }, "std:option": { u"--destination": ( u"doc2dash", u"2.0", u"index.html#document-usage#cmdoption--destination", u"-" ) }, "std:constant": { u"SomeConstant": (None, None, u"some_other_module.py", u"-") }}) ) assert set([ParserEntry( name=u'some_method', type=u'Method', path=u'some_module.py' ), ParserEntry( name=u'--destination', type=u'Option', path=u'index.html#cmdoption--destination' ), ParserEntry( name=u'SomeConstant', type=u'Constant', path=u'some_other_module.py', ) ]) == set(result)
def test_inv_to_entries(self): """ Inventory items are correctly converted. """ result = list( _inv_to_entries({"py:method": { u"some_method": (None, None, u"some_module.py", u"-"), }}) ) assert [ParserEntry( name=u'some_method', type=u'Method', path=u'some_module.py' )] == result
def test_inv_to_entries(self): """ Inventory items are correctly converted. """ result = list( _inv_to_entries({"py:method": { "some_method": (None, None, u"some_module.py", u"-"), }}) ) assert [ParserEntry( name='some_method', type='Method', path='some_module.py' )] == result