def METHOD_NAME(self):
    pkg_b = base.by_name(self.sack, "B")
    self.goal.install(pkg_b)
    self.assertTrue(self.goal.run())
    installs = self.goal.list_installs()
    self.assertEqual(len(installs), 2)
    expected_installs = ("B-1-0.noarch", "C-1-0.noarch")
    self.assertItemsEqual(list(map(str, installs)), expected_installs)
    goal2 = deepcopy(self.goal)
    self.assertTrue(goal2.run(ignore_weak_deps=True))
    installs2 = goal2.list_installs()
    self.assertEqual(len(goal2.list_installs()), 1)
    self.assertEqual(str(installs2[0]), "B-1-0.noarch")