Example #1
0
 def test__get_bills_bad_identifier(self):
     """ Verifies a cursor for Bills is returned for a bad identifier."""
     cursor = vote._get_bills("Bad Identifier")
     self.assertEqual(type(cursor.next()), Bill)
Example #2
0
 def test__get_bills_good_identifier(self):
     """ Verifies an array for the bill is returned on success."""
     result = vote._get_bills("VOTE_BILL2")
     self.assertEqual(result[0].name, "VOTE_BILL2")
Example #3
0
 def test__get_bills_no_identifier(self):
     """ Verifies a cursor for Bills is returned as the default."""
     cursor = vote._get_bills()
     self.assertEqual(type(cursor.next()), Bill)