0ffdc70 increasing unittests, kindof figured out how to test redirection and pep8 the files

Authored and Committed by skrzepto 7 years ago
    increasing unittests, kindof figured out how to test redirection and pep8 the files
    
    adding owner of hub editing hub with no data
    
    hub edit succesful
    
    adding another test for hubs/edit for invalid data
    
    pep8 the file
    
    pep8 files and added a new function to see if flask.g.auth is set
    
    made authenticated function check if flask.g.auth is set and check what the logged_in bool is and return it
    
    undoing a pep8 to one line, changed the authenticate function to be shorter
    
    pep8 the authenticated function
    
        
file modified
+33 -22
file modified
+1 -1