예제 #1
0
def getUserProjects(request):
    userObj = getCurrentUserObj(request)
    if not userObj:
        result = {'isSuccessful' : False}
        return HttpResponse(json.dumps(result), content_type="application/json")
    result = getUserProject(userObj)
    return HttpResponse(json.dumps(result), content_type="application/json")
예제 #2
0
 def test_empty_project(self):
     self.assertEqual(getUserProject(self.emptyProjectUser)['projects'], [])
예제 #3
0
 def test_empty_project(self):
     self.assertEqual(getUserProject(self.emptyProjectUser)['projects'],[])
예제 #4
0
 def test_normal(self):
     self.assertTrue(getUserProject(self.user)['isSuccessful'])
예제 #5
0
 def test_normal(self):
     self.assertTrue(getUserProject(self.user)['isSuccessful'])