Beispiel #1
0
 def test_get_dependency_graph(self):
     """
     It is possible to get a tl.eggdeps graph for a given application.
     """
     graph = get_dependency_graph(u'flocker')
     # We can be sure that flocker is installed if we are running this,
     # and pretty sure that setuptools is a dependency with no dependencies
     # of its own.
     # Perhaps a better test would install a canned package.
     self.assertEqual(graph['setuptools'], {})
Beispiel #2
0
 def test_application_removed(self):
     """
     Applications cannot depend on themselves so they are not in the graph.
     """
     self.assertNotIn(u'flocker', get_dependency_graph(u'flocker'))