Example #1
0
 def setUp(self):
     # Create tables
     User.createTable()
     Group.createTable()
     self.user1 = User(user_name='bobvilla', 
         email_address='*****@*****.**',
         display_name='Bob Villa',
         password='******')     
     u2 = User(user_name='bobathome',
         email_address='*****@*****.**',
         display_name='Bob Villa',
         password='******')
Example #2
0
 def tearDown(self):
     User.dropTable()
     Group.dropTable()
Example #3
0
 def test_setup(self):
     "Ensure our setup has been processed."
     assert User.tableExists()
     u2 = User.selectBy(email_address='*****@*****.**')[0]
     print u2
     assert u2.user_name=='bobathome'