def test_filter_only_sources(self): nodes = filter_nodes( self.results, option=NodeOption.HasOnlyOutputs, exclude_busses=True ) eq_(len(nodes), 3)
def test_filter_has_something(self): views.filter_nodes(self.results, option='has_something')
def test_filter_has_outputs(self): nodes = views.filter_nodes(self.results, option='has_outputs') eq_(len(nodes), 16)
def test_filter_no_sources(self): nodes = views.filter_nodes(self.results, option=views.NodeOption.HasInputs, exclude_busses=True) eq_(len(nodes), 9)
def test_filter_only_sinks(self): nodes = views.filter_nodes(self.results, option=views.NodeOption.HasOnlyInputs, exclude_busses=True) eq_(len(nodes), 3)
def test_filter_all_without_busses(self): nodes = views.filter_nodes(self.results, exclude_busses=True) eq_(len(nodes), 19 - 7)
def test_filter_all_(self): nodes = views.filter_nodes(self.results) eq_(len(nodes), 19)
def test_filter_all(self): nodes = filter_nodes(self.results) eq_(len(nodes), 19)