Ejemplo n.º 1
0
 def test_retrieve_requests(self):
     req = tr.retrieve_requests()
     self.assertEqual(str(req), "Collection(Database(MongoClient(" \
     "'130.238.15.114', 27017), u'monad1'), u'TravelRequest')")
     print "Test - OK ... Retrieved past accessed"
Ejemplo n.º 2
0
 def test_retrieve_requests(self):
     req = tr.retrieve_requests()
     self.assertEqual(str(req), "Collection(Database(MongoClient(" \
     "'130.238.15.114', 27017), u'monad1'), u'TravelRequest')")
     print "Test - OK ... Retrieved past accessed"
Ejemplo n.º 3
0
 def test_populate_requests(self):
     tr.users = []
     req = tr.retrieve_requests()
     tr.populate_requests(req)
     self.assertGreater(len(tr.users), 0)
     print "Test - OK ... Stored past requests"
Ejemplo n.º 4
0
 def test_populate_requests(self):
     tr.users = []
     req = tr.retrieve_requests()
     tr.populate_requests(req)
     self.assertGreater(len(tr.users), 0)
     print "Test - OK ... Stored past requests"