def METHOD_NAME(self):
    """Test the get_versions function of the custom backend."""
    pid = 1
    project = models.Project.get(self.session, pid)
    exp = ["1.33"]
    obs = backend.CustomBackend.get_versions(project)
    self.assertEqual(sorted(obs), exp)
    pid = 2
    project = models.Project.get(self.session, pid)
    self.assertRaises(
        AnityaPluginException, backend.CustomBackend.get_version, project
    )
    pid = 3
    project = models.Project.get(self.session, pid)
    exp = [
        "3.1.1",
        "4.0",
        "4.0.1",
        "4.0.2",
        "4.0.3",
        "4.1",
        "4.2",
        "4.3",
        "4.4.0",
        "4.4.1",
        "4.4.2",
        "4.5.0",
        "4.5.1",
        "4.5.2",
        "4.5.3",
        "4.5.4",
        "4.5.5",
        "4.5.6",
        "4.6.0",
        "4.6.1",
        "4.6.2",
        "4.6.3",
        "4.6.4",
        "4.7.1",
        "4.7.2",
        "4.7.3",
        "4.7.4",
        "4.7.5",
        "4.7.6",
        "4.7.7",
    ]
    obs = backend.CustomBackend.get_ordered_versions(project)
    self.assertEqual(sorted(obs), exp)