def load_installed_version(self):
        installed_packages = get_installed_pypackages()
        if self.package in installed_packages:
            self.version = "=={}".format(
                installed_packages[self.package].version)
def test_optional_arguments(self):
        self.assertEqual(self.myfunc('a'), self.expected)
        self.assertEqual(self.myfunc('a', 5), self.expected)
        self.assertEqual(self.myfunc('a', second=5), self.expected)
        self.assertEqual(self.myfunc('a', 5, 5), self.expected)
        self.assertEqual(self.myfunc('a', fourth=[]), self.expected)