def test_getBySvnUser(self): u = SvnUsers.get_by_svn_user('bjshijianwei') self.assertEqual(u.id, 647)
def test_add(self): u = SvnUsers.add('shijianwei') self.assertEqual(u.svn_user, 'shijianwei')
def test_get(self): u = SvnUsers.get(647) self.assertEqual(u.svn_user, 'bjshijianwei')