Change tests so that expected state is first and actual state follows (previous order was confusing). Also use "claimed" and "available" terms when reporting test results.

pull/590/head
Christopher K. Hoadley 5 years ago
parent 92879af8eb
commit 529b37bc60

@ -104,10 +104,10 @@ class SherlockBaseTest(unittest.TestCase):
site_data = self.site_data_filter(site_list) site_data = self.site_data_filter(site_list)
if exist_check: if exist_check:
check_type_text = "exists" check_type_text = "claimed"
exist_result_desired = QueryStatus.CLAIMED exist_result_desired = QueryStatus.CLAIMED
else: else:
check_type_text = "does not exist" check_type_text = "available"
exist_result_desired = QueryStatus.AVAILABLE exist_result_desired = QueryStatus.AVAILABLE
for username in username_list: for username in username_list:
@ -134,8 +134,8 @@ class SherlockBaseTest(unittest.TestCase):
f"Site returned error status." f"Site returned error status."
) )
self.assertEqual(result['status'].status, self.assertEqual(exist_result_desired,
exist_result_desired) result['status'].status)
return return

Loading…
Cancel
Save