Fix many wrong-assert-type errors

This commit is contained in:
Ned Batchelder
2016-07-31 10:47:17 -04:00
parent eef964f5f6
commit 8571ceabeb
51 changed files with 228 additions and 199 deletions

View File

@@ -92,8 +92,8 @@ class TestAnalyticsBasic(ModuleStoreTestCase):
# Check if list_problem_responses returned expected results:
self.assertEqual(len(problem_responses), len(mock_results))
for mock_result in mock_results:
self.assertTrue(
{'username': mock_result.student.username, 'state': mock_result.state} in
self.assertIn(
{'username': mock_result.student.username, 'state': mock_result.state},
problem_responses
)