<s> import os <EOL> import sys <EOL> from django . conf import settings <EOL> from smart_server . smart . models . apps import OAuthApp <EOL> from smart_server . smart . triplestore . triplestore import TripleStore <EOL> def check_environment ( ) : <EOL> check_database ( ) <EOL> check_triplestore ( ) <EOL> def check_database ( ) : <EOL> try : <EOL> a = OAuthApp . objects . all ( ) <EOL> except : <EOL> assert False , "<STR_LIT>" <EOL> def check_triplestore ( ) : <EOL> try : <EOL> c = TripleStore ( ) <EOL> r = c . sparql ( """<STR_LIT>""" ) <EOL> except : <EOL> assert False , "<STR_LIT>" </s>
