def METHOD_NAME(self):
    """Test the get_versions function of the packagist backend."""
    pid = 1
    project = models.Project.get(self.session, pid)
    exp = [
        "1.2.0",
        "1.2.1",
        "1.2.10",
        "1.2.11",
        "1.2.12",
        "1.2.13",
        "1.2.14",
        "1.2.15",
        "1.2.16",
        "1.2.17",
        "1.2.18",
        "1.2.2",
        "1.2.3",
        "1.2.6",
        "1.2.7",
        "1.2.8",
        "1.2.9",
        "1.2.x-dev",
        "2.0.0",
        "2.0.1",
        "2.0.10",
        "2.0.11",
        "2.0.12",
        "2.0.13",
        "2.0.14",
        "2.0.15",
        "2.0.16",
        "2.0.17",
        "2.0.2",
        "2.0.3",
        "2.0.4",
        "2.0.5",
        "2.0.6",
        "2.0.7",
        "2.0.8",
        "2.0.9",
        "2.0.x-dev",
        "dev-feature/path-coverage",
        "dev-master",
    ]
    obs = backend.PackagistBackend.get_versions(project)
    self.assertListEqual(obs, exp)
    pid = 2
    project = models.Project.get(self.session, pid)
    self.assertRaises(
        AnityaPluginException, backend.PackagistBackend.get_versions, project
    )
    pid = 3
    project = models.Project.get(self.session, pid)
    exp = ["dev-master", "1.0.3", "1.0.4", "1.0.5"]
    obs = backend.PackagistBackend.get_ordered_versions(project)
    self.assertEqual(obs, exp)