def test_installing_already_installed_does_not_raise(self):
     install_package(self.PACKAGE)
     self.assert_equal(True, install_package(self.PACKAGE))
 def test_can_install_package(self):
     install_package(self.PACKAGE)
     self.assert_package_installed(self.PACKAGE)
 def test_cant_remove_package_with_remaining_dependencies(self):
     install_package(self.PACKAGE)
     install_package(self.DEPENDENCY)
     self.assert_equal(False, remove_package(self.PACKAGE))
 def test_can_force_remove_package_with_remaining_dependencies(self):
     install_package(self.PACKAGE)
     install_package(self.DEPENDENCY)
     self.assert_true(remove_package(self.PACKAGE, force=True))
 def test_can_remove_installed_package(self):
     install_package(self.PACKAGE)
     remove_package(self.DEPENDENCY)
     self.assert_true(remove_package(self.PACKAGE))