def test_get_reserved_keywords():
    reserved_keywords = ReservedKeywords.get_reserved_keywords()
    assert "SET" in reserved_keywords
    assert "DELETE" in reserved_keywords
    assert "ADD" in reserved_keywords
    # REMOVE is not part of the list of reserved keywords.
    assert "REMOVE" not in reserved_keywords
Esempio n. 2
0
 def raise_exception_if_keyword(cls, attribute):
     if attribute.upper() in ReservedKeywords.get_reserved_keywords():
         raise AttributeIsReservedKeyword(attribute)