Example #1
0
 def test_check_rep_wrong_status(self):
     testrep = Representative.check_rep('Joseph Giglio', 'ny', '148', 'lower', False)
     self.assertEqual(testrep, [])
Example #2
0
 def test_check_rep_wrong_house(self):
     testrep = Representative.check_rep('Joseph Giglio', 'ny', '148', 'upper', True)
     self.assertEqual(testrep, [])
Example #3
0
 def test_check_rep_wrong_distnum(self):
     testrep = Representative.check_rep('Joseph Giglio', 'ny', '147', 'lower', True)
     self.assertEqual(testrep, [])
Example #4
0
 def test_check_rep_wrong_state(self):
     testrep = Representative.check_rep('Joseph Giglio', 'fl', '148', 'lower', True)
     self.assertEqual(testrep, [])
Example #5
0
 def test_check_rep_wrong_name(self):
     testrep = Representative.check_rep('Bob Lablaw', 'ny', '148', 'lower', True)
     self.assertEqual(testrep, [])
Example #6
0
 def test_check_rep(self):
     testrep = Representative.check_rep('Joseph Giglio', 'ny', '148', 'lower', True)
     self.assertEqual(testrep, self.rep1)