def METHOD_NAME(self):
    """Check that a script can be found by its attributes."""
    script, errors = DefaultScript.create("a-script")
    script.db.an_attribute = "some value"
    found = search_script_attribute(key="an_attribute", value="some value")
    self.assertEqual(len(found), 1, errors)
    self.assertEqual(script.key, found[0].key, errors)