def test_check_rep_wrong_status(self): testrep = Representative.check_rep('Joseph Giglio', 'ny', '148', 'lower', False) self.assertEqual(testrep, [])
def test_check_rep_wrong_house(self): testrep = Representative.check_rep('Joseph Giglio', 'ny', '148', 'upper', True) self.assertEqual(testrep, [])
def test_check_rep_wrong_distnum(self): testrep = Representative.check_rep('Joseph Giglio', 'ny', '147', 'lower', True) self.assertEqual(testrep, [])
def test_check_rep_wrong_state(self): testrep = Representative.check_rep('Joseph Giglio', 'fl', '148', 'lower', True) self.assertEqual(testrep, [])
def test_check_rep_wrong_name(self): testrep = Representative.check_rep('Bob Lablaw', 'ny', '148', 'lower', True) self.assertEqual(testrep, [])
def test_check_rep(self): testrep = Representative.check_rep('Joseph Giglio', 'ny', '148', 'lower', True) self.assertEqual(testrep, self.rep1)