Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
missed a bad name validation case
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffFranklin committed Mar 26, 2015
1 parent 4951c6f commit b5f3b3c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions restclients/test/irws.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ def test_valid_irws_name_required_fields_missing(self):
irws.valid_irws_name_from_json,
bad_json)

def test_valid_irws_name_bad_characters(self):
irws = IRWS()
bad_data_list = [
('^', 'average', 'user'),
('joe', '^', 'user'),
('joe', 'average', '^'),
]

for bad_data in bad_data_list:
bad_json = self._json_name_from_tuple(bad_data)
self.assertRaises(InvalidIRWSName,
irws.valid_irws_name_from_json,
bad_json)

def test_valid_irws_name_too_long(self):
# 80 is the magic number
irws = IRWS()
Expand Down

0 comments on commit b5f3b3c

Please sign in to comment.