def METHOD_NAME(self):
    """Test the get_versions function of the debian backend."""
    pid = 1
    project = models.Project.get(self.session, pid)
    exp = ["2.x-dev", "2.0-alpha1", "2.0", "2.1", "2.2", "2.3", "2.4"]
    obs = backend.Drupal6Backend.get_ordered_versions(project)
    self.assertEqual(obs, exp)
    pid = 2
    project = models.Project.get(self.session, pid)
    self.assertRaises(
        AnityaPluginException, backend.Drupal6Backend.get_version, project
    )
    pid = 3
    project = models.Project.get(self.session, pid)
    exp = [
        "1.x-dev",
        "1.0-beta",
        "1.0",
        "1.1",
        "1.2",
        "1.3",
        "1.4",
        "1.5",
        "1.6",
        "1.7",
        "1.8",
        "1.9",
        "3.x-dev",
        "3.0-alpha1",
        "3.0-alpha2",
        "3.0-alpha3",
        "3.0-alpha4",
    ]
    obs = backend.Drupal6Backend.get_ordered_versions(project)
    self.assertEqual(obs, exp)