예제 #1
0
 def test_update_multipleKW(self):
     "update works with multiple keywords"
     u = self.user1
     ormmanager.update(u, password='******', email_address='*****@*****.**')
     assert u.user_name=='bobvilla', str(u.user_name)
     assert u.password=='ihearttools'
     assert u.email_address=='*****@*****.**'
예제 #2
0
 def test_update_singleKW(self):
     "update works with a single keyword"
     u = self.user1
     ormmanager.update(u, password='******')
     assert u.user_name=='bobvilla'
     assert u.password=='ihearttools'